class Daedal::Attributes::QueryArray

Public Instance Methods

<<(q) click to toggle source

override the << method so that you throw an error if you don't try to append a query

Calls superclass method
# File lib/daedal/attributes/query_array.rb, line 9
def <<(q)
  if q.is_a? Daedal::Queries::Query
    super q
  else
    raise Virtus::CoercionError.new(q, 'Daedal::Queries::Query')
  end
end