simplify sanitizer in *_params function

This commit is contained in:
Chun-Yang
2014-09-09 20:35:46 -05:00
parent 6003c69818
commit 17f6c76dc7
2 changed files with 3 additions and 9 deletions

View File

@@ -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.

View File

@@ -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