Skip to Content Skip to Search

Active Record Attribute Methods Query

Methods
Q

Instance Public methods

query_attribute(attr_name)

Also aliased as: attribute?
# File activerecord/lib/active_record/attribute_methods/query.rb, line 13
def query_attribute(attr_name)
  value = self.public_send(attr_name)

  query_cast_attribute(attr_name, value)
end