12345678910111213141516 |
- class ApplicationController < ActionController::Base
- protect_from_forgery with: :exception
- before_action :configure_permitted_parameters, if: :devise_controller?
- before_action :masquerade_user!
- # before_action :authenticate_user!
-
- add_breadcrumb I18n.t("breadcrumbs.homepage"), :root_path
- protected
- def configure_permitted_parameters
- devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
- devise_parameter_sanitizer.permit(:account_update, keys: [:name])
- end
- end
|