module Querifier::Queries::Where::ClassMethods

Public Instance Methods

where_attributes(*value) click to toggle source
# 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