lib/mongomodel/concerns/translation.rb in mongomodel-0.1.4 vs lib/mongomodel/concerns/translation.rb in mongomodel-0.1.5

- old
+ new

@@ -1,10 +1,14 @@ module MongoModel module Translation - extend ActiveModel::Translation + extend ActiveSupport::Concern - # Set the i18n scope to overwrite ActiveModel. - def i18n_scope #:nodoc: - :mongomodel + module ClassMethods + include ActiveModel::Translation + + # Set the i18n scope to overwrite ActiveModel. + def i18n_scope #:nodoc: + :mongomodel + end end end end