instance method
attribute_alias
Ruby on Rails 7.2.3
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 245
def attribute_alias(name)
attribute_aliases[name.to_s]
end
Defined in activemodel/lib/active_model/attribute_methods.rb line 245
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::AttributeMethods::ClassMethods