method
attribute_method?
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods
attribute_method?(attr_name)private
No documentation available.
# File activerecord/lib/active_record/attribute_methods.rb, line 381
def attribute_method?(attr_name)
# We check defined? because Syck calls respond_to? before actually calling initialize.
defined?(@attributes) && @attributes.key?(attr_name)
end