method
attribute
v5.2.3 -
Show latest stable
- Class:
ActiveModel::Attributes
attribute(attr_name)private
No documentation available.
# File activemodel/lib/active_model/attributes.rb, line 86
def attribute(attr_name)
name = if self.class.attribute_alias?(attr_name)
self.class.attribute_alias(attr_name).to_s
else
attr_name.to_s
end
@attributes.fetch_value(name)
end