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 28, 2024
1 parent dcc30ea commit fef1771
Show file tree
Hide file tree
Showing 2 changed files with 9 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
9 changes: 9 additions & 0 deletions gems/railties/6.0/railties.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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

0 comments on commit fef1771

Please sign in to comment.