NoamB/sorcery — pull request #303 by nachbar (2012-06-06 03:13:40+00:00)
Title: Fix Deprecation Warning

I am getting this error using sorcery with MongoMapper in Rails 3.2.3:

DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in Sorcery::Model::Adapters::MongoMapper instead. (called from include at /Users/nachbar/work/2012/railstest/RMongo/app/models/event.rb:2)

I have also noted this error in several other modules. In each case, the solution is to follow the instructions, commenting out the definition of the InstanceMethods module.

This change stops this error. For neatness, you might want to reduce the indentation of the increment and save! methods, but to keep this commit clean, I did not.