Class: Devise::ParameterSanitizer

Inherits:
BaseSanitizer show all
Defined in:
lib/devise/parameter_sanitizer.rb

Instance Method Summary collapse

Constructor Details

#initializeParameterSanitizer

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_updateObject



57
58
59
# File 'lib/devise/parameter_sanitizer.rb', line 57

def 
  permit self.for(:account_update)
end

#sign_inObject



49
50
51
# File 'lib/devise/parameter_sanitizer.rb', line 49

def 
  permit self.for(:sign_in)
end

#sign_upObject



53
54
55
# File 'lib/devise/parameter_sanitizer.rb', line 53

def 
  permit self.for(:sign_up)
end