Module: Clearance::User::AttrAccessible
- Defined in:
- lib/clearance/user.rb
Class Method Summary collapse
-
.included(model) ⇒ Object
Hook for attr_accessible white list.
Class Method Details
.included(model) ⇒ Object
Hook for attr_accessible white list.
:email, :password, :password_confirmation
Append other attributes that must be mass-assigned in your model.
43 44 45 46 47 |
# File 'lib/clearance/user.rb', line 43 def self.included(model) model.class_eval do attr_accessible :email, :password, :password_confirmation end end |