application_controller.rb 405 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: [:first_name, :last_name])
  7. devise_parameter_sanitizer.permit(:account_update, keys: [:first_name, :last_name])
  8. end
  9. end