Merge pull request #3596 from jsanders/confusing-comments-in-generated-controllers

Change comments on registration and session controller configure methods
This commit is contained in:
José Valim
2015-05-11 20:57:22 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -38,12 +38,12 @@ class <%= @scope_prefix %>RegistrationsController < Devise::RegistrationsControl
# protected
# You can put the params you want to permit in the empty array.
# If you have extra params to permit, append them to the sanitizer.
# def configure_sign_up_params
# devise_parameter_sanitizer.for(:sign_up) << :attribute
# end
# You can put the params you want to permit in the empty array.
# If you have extra params to permit, append them to the sanitizer.
# def configure_account_update_params
# devise_parameter_sanitizer.for(:account_update) << :attribute
# end

View File

@@ -18,7 +18,7 @@ class <%= @scope_prefix %>SessionsController < Devise::SessionsController
# protected
# You can put the params you want to permit in the empty array.
# If you have extra params to permit, append them to the sanitizer.
# def configure_sign_in_params
# devise_parameter_sanitizer.for(:sign_in) << :attribute
# end