Skip to content

Commit

Permalink
Merge pull request lynndylanhurley#506 from fivetwentysix/master
Browse files Browse the repository at this point in the history
remove deprecations from RegistrationsController
  • Loading branch information
booleanbetrayal committed Jan 23, 2016
2 parents 8a6ba64 + a410b74 commit ce1aecf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/controllers/devise_token_auth/registrations_controller.rb
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit ce1aecf

Please sign in to comment.