instance method
_attribute
Ruby on Rails 3.2.22.5
Since v3.2.22.5 Last seen in v3.2.22.5Signature
_attribute(attr_name)
No documentation comment.
Parameters
-
attr_namereq
Source
# File activerecord/lib/active_record/attribute_methods/deprecated_underscore_read.rb, line 23
def _attribute(attr_name)
ActiveSupport::Deprecation.warn(
"You have called '_#{attr_name}'. This is deprecated. Please use " \
"either '#{attr_name}' or read_attribute('#{attr_name}')."
)
read_attribute(attr_name)
end
Defined in activerecord/lib/active_record/attribute_methods/deprecated_underscore_read.rb line 23
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::DeprecatedUnderscoreRead