Class: Globalize::ActiveRecord::TranslatedAttributesQuery::WhereChain

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

Instance Method Summary collapse

Instance Method Details

#not(opts, *rest) ⇒ Object



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

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