Permalink
Browse files

ActiveModel::Name must be used via extend, not include

  • Loading branch information...
sirlantis committed Jul 29, 2011
1 parent 279bbab commit ffc62c78b2dcab6bcc8ed6fd665c31f86d72a711
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongo_mapper/plugins/active_model.rb
@@ -4,13 +4,13 @@ module Plugins
module ActiveModel
extend ActiveSupport::Concern
- include ::ActiveModel::Naming
include ::ActiveModel::Conversion
include ::ActiveModel::Serialization
include ::ActiveModel::Serializers::Xml
include ::ActiveModel::Serializers::JSON
included do
+ extend ::ActiveModel::Naming
extend ::ActiveModel::Translation
end
end

0 comments on commit ffc62c7

Please sign in to comment.