We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/mdeering/attribute_normalizer/blob/master/lib/attribute_normalizer/model_inclusions.rb#L51-L57
alias_method "old_#{attribute}=", "#{attribute}=" define_method "#{attribute}=" do |value| normalized_value = self.send(:"normalize_#{attribute}", value) self.send("old_#{attribute}=", normalized_value) end
old_ is not a good naming scheme.
old_
Better use something like attribute_without_attribute_normalizer and attribute_with_attribute_normalizer
attribute_without_attribute_normalizer
attribute_with_attribute_normalizer
Some resources showing this naming convention:
The text was updated successfully, but these errors were encountered:
super
Agree with this. Would gladly accept a pull request making these changes.
Sorry, something went wrong.
No branches or pull requests
https://github.com/mdeering/attribute_normalizer/blob/master/lib/attribute_normalizer/model_inclusions.rb#L51-L57
old_
is not a good naming scheme.Better use something like
attribute_without_attribute_normalizer
andattribute_with_attribute_normalizer
Some resources showing this naming convention:
The text was updated successfully, but these errors were encountered: