Update parameter sanitizer for new Devise
This commit is contained in:
parent
4ca5ed4c50
commit
078bf8c390
|
@ -37,8 +37,6 @@ class ApplicationController < ActionController::Base
|
|||
protected
|
||||
|
||||
def configure_permitted_parameters
|
||||
devise_parameter_sanitizer.for(:account_update) do |u|
|
||||
u.permit :email, :password, :password_confirmation, :current_password, :language
|
||||
end
|
||||
devise_parameter_sanitizer.permit(:account_update, keys: [:language])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue