Method: ActiveModel::AttributeMethods::ClassMethods#attribute_alias
- Defined in:
- activemodel/lib/active_model/attribute_methods.rb
#attribute_alias(name) ⇒ Object
Returns the original name for the alias name
245 246 247 |
# File 'activemodel/lib/active_model/attribute_methods.rb', line 245 def attribute_alias(name) attribute_aliases[name.to_s] end |