Skip to content

Commit

Permalink
railties: Move the definition of PluginGenerator#app_path to railties…
Browse files Browse the repository at this point in the history
….rbs

As a preparation of ruby#693, this moves the definition of
`Rails::Generator::PluginGenerator#app_path` to railties.rbs
  • Loading branch information
tk0miya committed Oct 30, 2024
1 parent dcc30ea commit 6aa1df0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 0 additions & 10 deletions gems/railties/6.0/patch.rbs
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
module Rails
module Generators
class PluginGenerator < AppBase
# It is necessary to satisfy alias target.
# TODO: Define this method to correct place.
def app_path: () -> untyped
end
end
end

# rbs gem has erb library but it doesn't have ERB::Compiler definition.
class ERB
class Compiler
Expand Down
8 changes: 8 additions & 0 deletions gems/railties/6.0/railties.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module Rails
module Generators
class PluginGenerator < AppBase
# It is necessary to satisfy alias target.
def app_path: () -> untyped
end
end
end

0 comments on commit 6aa1df0

Please sign in to comment.