提交 9e61a14d 编写于 作者: A Arun Agrawal

Removed unnecessary command "application"

上级 d4115409
* Removed unnecessary `rails application` command.
*Arun Agrawal*
* Make the `rails:template` rake task load the application's initializers.
Fixes #12133.
......
......@@ -20,7 +20,6 @@ class CommandsTasks # :nodoc:
new application called MyApp in "./my_app"
In addition to those, there are:
application Generate the Rails application code
destroy Undo code generated with "generate" (short-cut alias: "d")
plugin new Generates skeleton for developing a Rails plugin
runner Run a piece of code in the application environment (short-cut alias: "r")
......@@ -28,7 +27,7 @@ class CommandsTasks # :nodoc:
All commands can be run with -h (or --help) for more information.
EOT
COMMAND_WHITELIST = %(plugin generate destroy console server dbconsole application runner new version help)
COMMAND_WHITELIST = %(plugin generate destroy console server dbconsole runner new version help)
def initialize(argv)
@argv = argv
......@@ -87,10 +86,6 @@ def dbconsole
Rails::DBConsole.start
end
def application
require_command!("application")
end
def runner
require_command!("runner")
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册