Remove before_filter deprecation warning

DEPRECATION WARNING: before_filter is deprecated and will be removed in
Rails 5.1. Use before_action instead. (called from
<class:RegistrationsController> at
/home/travis/build/consul/consul/app/controllers/users/registrations_con
troller.rb:3)
This commit is contained in:
rgarcia
2018-04-08 13:59:00 +02:00
committed by Julian Herrero
parent b2b418284d
commit c6ab5dbe1b

View File

@@ -1,6 +1,6 @@
class Users::RegistrationsController < Devise::RegistrationsController
prepend_before_action :authenticate_scope!, only: [:edit, :update, :destroy, :finish_signup, :do_finish_signup]
before_filter :configure_permitted_parameters
before_action :configure_permitted_parameters
invisible_captcha only: [:create], honeypot: :address, scope: :user