Module: Recliner::AttributeMethods::Query

Extended by:
ActiveSupport::Concern
Defined in:
lib/recliner/attribute_methods/query.rb

Instance Method Summary collapse

Instance Method Details

#query_attribute(name) ⇒ Object

Returns true if the attribute is not blank (i.e. it has some value). Otherwise returns false.



11
12
13
# File 'lib/recliner/attribute_methods/query.rb', line 11

def query_attribute(name)
  !read_attribute(name).blank?
end