Skip to content

Commit

Permalink
Merge pull request #249 from marcelopazzo/fix-devise-rbi
Browse files Browse the repository at this point in the history
Add missing controller to Devise RBI
  • Loading branch information
KaanOzkan authored Jun 7, 2024
2 parents 9b12ad4 + d0eed40 commit def5704
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions rbi/annotations/devise.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,28 @@ class Devise::UnlocksController < DeviseController
sig { params(resource: T.untyped).returns(String) }
def after_unlock_path_for(resource); end
end

# @shim: Devise controllers are loaded by rails
class Devise::OmniauthCallbacksController < DeviseController
# GET|POST /resource/auth/provider
sig { returns(T.untyped) }
def passthru; end

# GET|POST /resource/auth/provider/callback
sig { returns(T.untyped) }
def failure; end

protected

sig { returns(String) }
def failed_strategy; end

sig { returns(String) }
def failure_message; end

sig { params(scope: String).returns(String) }
def after_omniauth_failure_path_for(scope); end

sig { returns(String) }
def translation_scope; end
end

0 comments on commit def5704

Please sign in to comment.