2022-11-21 11:10:04 +01:00
|
|
|
class ApplicationController < ActionController::Base
|
2022-12-20 16:29:05 +01:00
|
|
|
before_action :configure_permitted_parameters, if: :devise_controller?
|
2023-01-15 21:00:26 +01:00
|
|
|
include Pundit::Authorization
|
|
|
|
alias :current_user :current_member
|
2022-12-20 16:29:05 +01:00
|
|
|
|
2023-01-15 21:00:26 +01:00
|
|
|
protected
|
2022-12-20 16:29:05 +01:00
|
|
|
|
2023-01-15 21:00:26 +01:00
|
|
|
def configure_permitted_parameters
|
|
|
|
devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
|
|
|
|
end
|
2022-11-21 11:10:04 +01:00
|
|
|
end
|