Class: Countrizable::ActiveRecord::CountryAttributesQuery::WhereChain

Inherits:
ActiveRecord::QueryMethods::WhereChain
  • Object
show all
Defined in:
lib/countrizable/active_record/country_attributes_query.rb

Instance Method Summary collapse

Instance Method Details

#not(opts, *rest) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/countrizable/active_record/country_attributes_query.rb', line 5

def not(opts, *rest)
  if parsed = @scope.clone.parse_country_conditions(opts)
    @scope.join_country_values.where.not(parsed, *rest)
  else
    super
  end
end