method
generate_alias_attribute_methods
v8.1.1 -
Show latest stable
- Class:
ActiveModel::AttributeMethods::ClassMethods
generate_alias_attribute_methods(code_generator, new_name, old_name)public
No documentation available.
# File activemodel/lib/active_model/attribute_methods.rb, line 217
def generate_alias_attribute_methods(code_generator, new_name, old_name) # :nodoc:
ActiveSupport::CodeGenerator.batch(code_generator, __FILE__, __LINE__) do |owner|
attribute_method_patterns.each do |pattern|
alias_attribute_method_definition(code_generator, pattern, new_name, old_name)
end
attribute_method_patterns_cache.clear
end
end