Start working towards the new recommended protection model for params in Rails 4.
This commit is contained in:
parent
fdc9261c89
commit
a0ee97482a
1 changed files with 4 additions and 1 deletions
|
|
@ -5,5 +5,8 @@ class AdminUser < ActiveRecord::Base
|
|||
:recoverable, :rememberable, :trackable, :validatable
|
||||
|
||||
# Setup accessible (or protected) attributes for your model
|
||||
attr_accessible :email, :password, :password_confirmation, :remember_me
|
||||
# obsoleted in Rails 4.
|
||||
# see http://blog.remarkablelabs.com/2012/12/strong-parameters-rails-4-countdown-to-2013
|
||||
# TODO delete this (commented out) block.
|
||||
# attr_accessible :email, :password, :password_confirmation, :remember_me
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue