Change parameters in Devise parameter sanitizer

This commit is contained in:
Petko Bordjukov 2015-08-15 03:54:02 +03:00
parent 6dfcac3131
commit f47cbd02a3
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class ApplicationController < ActionController::Base
def configure_permitted_parameters def configure_permitted_parameters
devise_parameter_sanitizer.for(:account_update) do |u| devise_parameter_sanitizer.for(:account_update) do |u|
u.permit :email, :password, :password_confirmation, :current_password, :first_name, :last_name u.permit :email, :password, :password_confirmation, :current_password, :language
end end
end end
end end