Skip to content

Commit

Permalink
add unlocks actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fcheung authored and KaanOzkan committed Nov 24, 2023
1 parent 2658a00 commit d3c7792
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion rbi/annotations/devise.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,23 @@ class Devise::SessionsController < DeviseController
def sign_in_params; end
end

class Devise::UnlocksController< DeviseController
class Devise::UnlocksController < DeviseController
# GET /resource/unlock/new
def new; end

# POST /resource/unlock
def create; end

# GET /resource/unlock?unlock_token=abcdef
def show; end

protected

# The path used after sending unlock password instructions
sig {params(resource: T.untyped).returns(String)}
def after_sending_unlock_instructions_path_for(resource); end

sig {params(resource: T.untyped).returns(String)}
# The path used after unlocking the resource
def after_unlock_path_for(resource); end
end

0 comments on commit d3c7792

Please sign in to comment.