application_controller.rb 403 B

12345678910111213
  1. class ApplicationController < ActionController::Base
  2. protect_from_forgery with: :exception
  3. before_action :configure_permitted_parameters, if: :devise_controller?
  4. before_action :masquerade_user!
  5. protected
  6. def configure_permitted_parameters
  7. devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
  8. devise_parameter_sanitizer.permit(:account_update, keys: [:name])
  9. end
  10. end