method
attribute_method?
v3.2.13 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods
attribute_method?(attr_name)protected
No documentation available.
# File activerecord/lib/active_record/attribute_methods.rb, line 271
def attribute_method?(attr_name)
attr_name == 'id' || (defined?(@attributes) && @attributes.include?(attr_name))
end