mirror of
https://github.com/go-gitnub/gitnub.git
synced 2024-11-14 23:23:07 +00:00
15 lines
510 B
Ruby
15 lines
510 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ApplicationController < ActionController::Base
|
|
before_action :configure_permitted_parameters, if: :devise_controller?
|
|
|
|
protected
|
|
|
|
def configure_permitted_parameters
|
|
added_attrs = %i[username email password password_confirmation remember_me]
|
|
devise_parameter_sanitizer.permit :sign_up, keys: added_attrs
|
|
devise_parameter_sanitizer.permit :sign_in, keys: %i[login password]
|
|
devise_parameter_sanitizer.permit :account_update, keys: added_attrs
|
|
end
|
|
end
|