instance method
attribute_alias
Ruby on Rails 6.0.6
Since v4.1.16Signature
attribute_alias(name)
Returns the original name for the alias name
Parameters
-
namereq
Source
# File activemodel/lib/active_model/attribute_methods.rb, line 223
def attribute_alias(name)
attribute_aliases[name.to_s]
end
Defined in activemodel/lib/active_model/attribute_methods.rb line 223
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::AttributeMethods::ClassMethods