lib/mongoid/i18n.rb in mongoid_i18n-0.1.8 vs lib/mongoid/i18n.rb in mongoid_i18n-0.2.0
- old
+ new
@@ -1,19 +1,14 @@
require 'mongoid/i18n/localized_field'
-require 'mongoid/i18n/localized_criteria'
+require 'mongoid/i18n/criterion/selector'
module Mongoid
module I18n
extend ActiveSupport::Concern
module ClassMethods
def localized_field(name, options = {})
field name, options.merge(:type => LocalizedField)
- end
-
- def criteria
- scope = scope_stack.last rescue nil
- scope || I18n::LocalizedCriteria.new(self)
end
protected
def create_accessors(name, meth, options = {})
if options[:type] == LocalizedField
\ No newline at end of file