Class: Devise::ParameterSanitizer
- Inherits:
-
BaseSanitizer
- Object
- BaseSanitizer
- Devise::ParameterSanitizer
- Defined in:
- lib/devise/parameter_sanitizer.rb
Instance Method Summary collapse
- #account_update ⇒ Object
-
#initialize ⇒ ParameterSanitizer
constructor
A new instance of ParameterSanitizer.
- #sign_in ⇒ Object
- #sign_up ⇒ Object
Constructor Details
#initialize ⇒ ParameterSanitizer
Returns a new instance of ParameterSanitizer.
44 45 46 47 |
# File 'lib/devise/parameter_sanitizer.rb', line 44 def initialize(*) super @permitted = Hash.new { |h,k| h[k] = attributes_for(k) } end |
Instance Method Details
#account_update ⇒ Object
57 58 59 |
# File 'lib/devise/parameter_sanitizer.rb', line 57 def account_update permit self.for(:account_update) end |
#sign_in ⇒ Object
49 50 51 |
# File 'lib/devise/parameter_sanitizer.rb', line 49 def sign_in permit self.for(:sign_in) end |
#sign_up ⇒ Object
53 54 55 |
# File 'lib/devise/parameter_sanitizer.rb', line 53 def sign_up permit self.for(:sign_up) end |