Skip to content
  • Sean Griffin & Sean Doyle's avatar
    ccc1d3db
    Stop using instance exec for type decorators · ccc1d3db
    Sean Griffin & Sean Doyle authored
    We are moving this behavior out to an object that we would like to keep
    separated from `ActiveRecord::Base`, which means not passing the class
    object to it. As such, we need to stop using `instance_exec`, and
    instead close over the subclass on global type decorators that are
    applied in `Base`.
    ccc1d3db
    Stop using instance exec for type decorators
    Sean Griffin & Sean Doyle authored
    We are moving this behavior out to an object that we would like to keep
    separated from `ActiveRecord::Base`, which means not passing the class
    object to it. As such, we need to stop using `instance_exec`, and
    instead close over the subclass on global type decorators that are
    applied in `Base`.
Loading