Start working towards the new recommended protection model for params in Rails 4.

This commit is contained in:
Señor Rolando 2014-01-09 23:09:47 +01:00
parent fdc9261c89
commit a0ee97482a

View file

@ -5,5 +5,8 @@ class AdminUser < ActiveRecord::Base
:recoverable, :rememberable, :trackable, :validatable :recoverable, :rememberable, :trackable, :validatable
# Setup accessible (or protected) attributes for your model # 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 end