Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using instance exec for type decorators #15938

Merged
merged 1 commit into from
Jun 27, 2014

Conversation

sgrif
Copy link
Contributor

@sgrif sgrif commented Jun 27, 2014

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.

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`.
rafaelfranca added a commit that referenced this pull request Jun 27, 2014
Stop using instance exec for type decorators
@rafaelfranca rafaelfranca merged commit 644719b into rails:master Jun 27, 2014
@sgrif sgrif deleted the sg-stop-instance-execing branch June 27, 2014 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants