Rails 4 update.

This commit is contained in:
Señor Rolando 2013-11-02 15:07:14 +01:00
parent 0317602854
commit 3a50f77a7c
4 changed files with 132 additions and 173 deletions

View file

@ -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?