Module: Querifier::Queries::Where::ClassMethods
- Defined in:
- lib/querifier/queries/where.rb
Constant Summary collapse
- @@where_attributes =
[]
Instance Method Summary collapse
Instance Method Details
#where_attributes(*value) ⇒ Object
52 53 54 55 56 57 58 59 60 |
# File 'lib/querifier/queries/where.rb', line 52 def where_attributes(*value) return class_variable_set :@@where_attributes, [*value] if value.any? begin class_variable_get :@@where_attributes rescue NameError class_variable_set :@@where_attributes, [] class_variable_get :@@where_attributes end end |