Module: Clearance::User::AttrAccessible

Defined in:
lib/clearance/user.rb

Class Method Summary collapse

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.

Examples:

include Clearance::User
attr_accessible :location, :gender


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