diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-03-10 18:37:00 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-03-14 12:46:24 -0300 |
commit | 2c0f6b0d8a8f357078fa7399765cf11edc7c645b (patch) | |
tree | 2c2d0347625e3fbb1a438acd296e5e1681c5a106 /railties/lib/rails | |
parent | 7f3847cc14074df699db627182d08a2c571fabc2 (diff) | |
download | rails-2c0f6b0d8a8f357078fa7399765cf11edc7c645b.tar.gz rails-2c0f6b0d8a8f357078fa7399765cf11edc7c645b.tar.bz2 rails-2c0f6b0d8a8f357078fa7399765cf11edc7c645b.zip |
Move http only option to AppGenerator
[Carlos Antonio da Silva & Santiago Pastorino]
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 3 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index f3333d0acb..8e9083e6eb 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -58,9 +58,6 @@ module Rails class_option :skip_test_unit, :type => :boolean, :aliases => "-T", :default => false, :desc => "Skip Test::Unit files" - class_option :http_only, :type => :boolean, :default => false, - :desc => "Preconfigure smaller stack for HTTP only apps" - class_option :help, :type => :boolean, :aliases => "-h", :group => :rails, :desc => "Show this help message and quit" end diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index f0745df667..3552ec2846 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -144,6 +144,9 @@ module Rails class AppGenerator < AppBase add_shared_options_for "application" + class_option :http_only, :type => :boolean, :default => false, + :desc => "Preconfigure smaller stack for HTTP only apps" + # Add bin/rails options class_option :version, :type => :boolean, :aliases => "-v", :group => :rails, :desc => "Show Rails version number and quit" |