Update parameter sanitizer for new Devise

This commit is contained in:
Petko Bordjukov 2016-07-05 17:49:26 +03:00
parent 4ca5ed4c50
commit 078bf8c390
1 changed files with 1 additions and 3 deletions

View File

@ -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