mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
simplify sanitizer in *_params function
This commit is contained in:
@@ -40,16 +40,12 @@ class <%= @scope_prefix %>RegistrationsController < Devise::RegistrationsControl
|
||||
|
||||
# You can put the params you want to permit in the empty array.
|
||||
# def configure_sign_up_params
|
||||
# [].each do |field|
|
||||
# devise_parameter_sanitizer.for(:sign_up) << field.to_sym
|
||||
# end
|
||||
# devise_parameter_sanitizer.for(:sign_up) << :attribute
|
||||
# end
|
||||
|
||||
# You can put the params you want to permit in the empty array.
|
||||
# def configure_account_update_params
|
||||
# [].each do |field|
|
||||
# devise_parameter_sanitizer.for(:account_update) << field.to_sym
|
||||
# end
|
||||
# devise_parameter_sanitizer.for(:account_update) << :attribute
|
||||
# end
|
||||
|
||||
# The path used after sign up.
|
||||
|
||||
@@ -20,8 +20,6 @@ class <%= @scope_prefix %>SessionsController < Devise::SessionsController
|
||||
|
||||
# You can put the params you want to permit in the empty array.
|
||||
# def configure_sign_in_params
|
||||
# [].each do |field|
|
||||
# devise_parameter_sanitizer.for(:sign_in) << field.to_sym
|
||||
# end
|
||||
# devise_parameter_sanitizer.for(:sign_in) << :attribute
|
||||
# end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user