From 078bf8c3903ab099bd65998cbf82343fe723b344 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 5 Jul 2016 17:49:26 +0300 Subject: [PATCH] Update parameter sanitizer for new Devise --- app/controllers/application_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 656b416..a431ae1 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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