Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move http only option to AppGenerator

[Carlos Antonio da Silva & Santiago Pastorino]
  • Loading branch information...
commit 2c0f6b0d8a8f357078fa7399765cf11edc7c645b 1 parent 7f3847c
@carlosantoniodasilva carlosantoniodasilva authored spastorino committed
View
3  railties/lib/rails/generators/app_base.rb
@@ -58,9 +58,6 @@ def self.add_shared_options_for(name)
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
View
3  railties/lib/rails/generators/rails/app/app_generator.rb
@@ -144,6 +144,9 @@ module Generators
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"

0 comments on commit 2c0f6b0

Please sign in to comment.
Something went wrong with that request. Please try again.