Active Record Attribute Methods Query

Methods

Instance Public methods

query_attribute(attr_name)

Also aliased as: attribute?
📝 Source code
# 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
🔎 See on GitHub