lib/mongoid/i18n/localized_criteria.rb in mongoid_i18n-0.1.3 vs lib/mongoid/i18n/localized_criteria.rb in mongoid_i18n-0.1.4

- old
+ new

@@ -8,10 +8,10 @@ end protected def expand_localized_fields_in_selector - @klass.fields.select { |k,f| @selector.keys.include?(k.to_sym) && f.type == LocalizedField }.each_key do |k| + @klass.fields.select { |k,f| @selector.keys.include?(k.to_sym) && f.type == LocalizedField }.each do |k,v| @selector["#{k}.#{::I18n.locale}"] = @selector.delete(k.to_sym) end end end end \ No newline at end of file