Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Brandon Cordell's Profile

GitHub User: brandoncordell

Site: http://brandoncordell.com

Comments by Brandon Cordell

Avatar

@folivi In case you never found your solution, or for posterity in case other people find this comment while searching for this same solution

Make sure authenticates_with_sorcery! comes after include Mongoid::Document

E.g.

ruby
class User
  include Mongoid::Document
  authenticates_with_sorcery!
end