Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEPRECATION WARNING when using mongomapper-versioned and Sorcery #2

Open
nachbar opened this issue Apr 29, 2012 · 0 comments
Open

DEPRECATION WARNING when using mongomapper-versioned and Sorcery #2

nachbar opened this issue Apr 29, 2012 · 0 comments

Comments

@nachbar
Copy link

nachbar commented Apr 29, 2012

I am using MongoMapper and Sorcery with no problems. However, when I include the mongomapper-versioned in my Gemfile, I get the following warning when I start rails with either 'rails server' or 'rails console' :

DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in MongoMapper::Plugins::AutoIncrement instead. (called from <top (required)> at /Users/nachbar/work/2012/railstest/rm323/config/application.rb:13)

This is a barebones test application, created from scratch just for testing. The line referenced in application.rb is just the boilerplate created by the Rails application generation:

Bundler.require(*Rails.groups(:assets => %w(development test)))

In creating the application, I followed the instructions at http://mongomapper.com/documentation/getting-started/rails.html. Then, I added sorcery, by including in my Gemfile:

gem 'sorcery'
gem "bcrypt-ruby", :require => "bcrypt"

and running

bundle install
rails g sorcery:install

Now, I can test my setup:

rails console
User.new

which creates a user and returns the BSON ObjectId
Now, if I add

gem 'mongomapper-versioned'

to the Gemfile, and then

bundle install
rake versioned:create_indexes

I get the deprecation warning noted above (twice) after rake versioned:create_indexes. I get the same warnings any time I start rails with rails console or rails server. If I comment out the gem 'mongomapper-versioned' line in Gemfile, the warnings go away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant