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

activesupport: Simplify class_attribute implementation #35454

Merged
merged 3 commits into from Mar 3, 2019

Conversation

dylanahsmith
Copy link
Contributor

This is purely a refactor with the following simplifications:

  • Use redefine_singleton_method
  • Use keyword arguments
  • Use the default value in the initial method definition to avoid an unnecessary method redefinition

@kamipo kamipo merged commit dfa439e into rails:master Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants