Class: ARQuery::ConditionSQLs

Inherits:
Array
  • Object
show all
Defined in:
lib/ar_query.rb

Instance Method Summary collapse

Instance Method Details

#<<(elt) ⇒ Object



27
28
29
30
31
32
33
34
35
36
# File 'lib/ar_query.rb', line 27

def <<(elt)
  if elt.is_a?(String)
    super
  else
    raise(
      ArgumentError,
      "Tried appending #{elt.inspect} to ARQuery#condition_sqls: Only strings are allowed"
    )
  end
end