Permalink
Browse files

work around for rolify issue 57

- also `extend Rolify` needs to be after `include Mongoid::Document`
  • Loading branch information...
1 parent a318ca6 commit 426ec4cb4c5841292739ec31cef63ca6e41ac2ea @stigi committed Apr 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/models/user.rb
View
@@ -1,6 +1,7 @@
class User
- rolify:role_cname => 'Role'
include Mongoid::Document
+ extend Rolify
+ rolify:role_cname => 'Role'
# Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,

0 comments on commit 426ec4c

Please sign in to comment.