Fix Rails/ActionOrder cop (#24692)
This commit is contained in:
		@@ -24,16 +24,16 @@ class Auth::RegistrationsController < Devise::RegistrationsController
 | 
			
		||||
    super(&:build_invite_request)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def destroy
 | 
			
		||||
    not_found
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def update
 | 
			
		||||
    super do |resource|
 | 
			
		||||
      resource.clear_other_sessions(current_session.session_id) if resource.saved_change_to_encrypted_password?
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def destroy
 | 
			
		||||
    not_found
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  protected
 | 
			
		||||
 | 
			
		||||
  def update_resource(resource, params)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user