From 1cbaab8ef6812ba5d0a158462e8c88449a2760ef Mon Sep 17 00:00:00 2001 From: Patrick Ma Date: Sat, 23 Jan 2016 09:49:49 +0800 Subject: [PATCH] remove deprecations from RegistrationsController --- .../devise_token_auth/registrations_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/devise_token_auth/registrations_controller.rb b/app/controllers/devise_token_auth/registrations_controller.rb index d031b5ff8..2710120b1 100644 --- a/app/controllers/devise_token_auth/registrations_controller.rb +++ b/app/controllers/devise_token_auth/registrations_controller.rb @@ -1,9 +1,9 @@ module DeviseTokenAuth class RegistrationsController < DeviseTokenAuth::ApplicationController - before_filter :set_user_by_token, :only => [:destroy, :update] - before_filter :validate_sign_up_params, :only => :create - before_filter :validate_account_update_params, :only => :update - skip_after_filter :update_auth_header, :only => [:create, :destroy] + before_action :set_user_by_token, :only => [:destroy, :update] + before_action :validate_sign_up_params, :only => :create + before_action :validate_account_update_params, :only => :update + skip_after_action :update_auth_header, :only => [:create, :destroy] def create @resource = resource_class.new(sign_up_params)