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