application_controller.rb 369 B

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