module ActiveModel::AttributeMethods

def attribute_method?(attr_name)

def attribute_method?(attr_name)
  respond_to_without_attributes?(:attributes) && attributes.include?(attr_name)
end