RailsCasts Pro episodes are now free!

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