Rails 4 update.
This commit is contained in:
parent
0317602854
commit
3a50f77a7c
4 changed files with 132 additions and 173 deletions
|
|
@ -6,7 +6,8 @@ class User < ActiveRecord::Base
|
|||
:recoverable, :rememberable, :trackable, :validatable
|
||||
|
||||
# Setup accessible (or protected) attributes for your model
|
||||
attr_accessible :email, :password, :password_confirmation, :remember_me
|
||||
# Note: This is not needed anymore as devise now complies with the strong parameters rules of Rails 4 (which are handled in the ApplicationController).
|
||||
# attr_accessible :email, :password, :password_confirmation, :remember_me
|
||||
|
||||
# This is needed by CanCan
|
||||
def admin?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue