Skip to content

Commit

Permalink
Mark class definitions as shims
Browse files Browse the repository at this point in the history
  • Loading branch information
KaanOzkan committed Nov 24, 2023
1 parent 004d0f4 commit 5db17d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rbi/annotations/devise.rbi
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# typed: true

# @shim: Devise controllers are loaded by rails
class DeviseController
protected

Expand Down Expand Up @@ -35,6 +36,7 @@ class DeviseController
def translation_scope; end
end

# @shim: Devise controllers are loaded by rails
class Devise::ConfirmationsController < DeviseController
sig {returns(T.untyped)}
def new; end
Expand All @@ -46,6 +48,7 @@ class Devise::ConfirmationsController < DeviseController
def show; end
end

# @shim: Devise controllers are loaded by rails
class Devise::PasswordsController < DeviseController
# GET /resource/password/new
sig {returns(T.untyped)}
Expand All @@ -64,6 +67,7 @@ class Devise::PasswordsController < DeviseController
def update; end
end

# @shim: Devise controllers are loaded by rails
class Devise::RegistrationsController < DeviseController
sig {returns(T.untyped)}
def new; end
Expand Down Expand Up @@ -95,6 +99,7 @@ class Devise::RegistrationsController < DeviseController
def cancel; end
end

# @shim: Devise controllers are loaded by rails
class Devise::SessionsController < DeviseController
# GET /resource/sign_in
sig {returns(T.untyped)}
Expand All @@ -113,6 +118,7 @@ class Devise::SessionsController < DeviseController
def sign_in_params; end
end

# @shim: Devise controllers are loaded by rails
class Devise::UnlocksController < DeviseController
# GET /resource/unlock/new
sig {returns(T.untyped)}
Expand Down

0 comments on commit 5db17d9

Please sign in to comment.