mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ec8d8652f3
There are historical reasons that the `plugin` command was `plugin_new`, now those are no longer applicable, we should remove the naming edge case from the project. This PR is based off of comments from #11176 ATP Railties
9 lines
192 B
Ruby
9 lines
192 B
Ruby
if ARGV.first != "new"
|
|
ARGV[0] = "--help"
|
|
else
|
|
ARGV.shift
|
|
end
|
|
|
|
require 'rails/generators'
|
|
require 'rails/generators/rails/plugin/plugin_generator'
|
|
Rails::Generators::PluginGenerator.start
|