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

AS::Callbacks._define_runner better abstraction #3593

Merged
merged 1 commit into from Nov 10, 2011
Merged

AS::Callbacks._define_runner better abstraction #3593

merged 1 commit into from Nov 10, 2011

Conversation

bogdan
Copy link
Contributor

@bogdan bogdan commented Nov 10, 2011

_define_runner method can be improved by moving:
"_run__#{self.class.name.hash.abs}__#{kind}__#{key.hash.abs}__callbacks"
into separated method and make use of it in one place.

Now the logic of keyed callback method definition and execution is in the separated method.

Checked tests for AS and AR - all pass.

Incapsulate the logic of keyed callback method definition and execution
in the separated method.
josevalim added a commit that referenced this pull request Nov 10, 2011
AS::Callbacks._define_runner better abstraction
@josevalim josevalim merged commit c778f4e into rails:master Nov 10, 2011
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.

None yet

2 participants