Class: Daedal::Attributes::Query

Inherits:
Virtus::Attribute
  • Object
show all
Defined in:
lib/daedal/attributes.rb

Instance Method Summary collapse

Instance Method Details

#coerce(value) ⇒ Object



30
31
32
33
34
35
# File 'lib/daedal/attributes.rb', line 30

def coerce(value)
  unless value.is_a? Daedal::Queries::BaseQuery
    raise "Must give a query"
  end
  value
end