aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/generators/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/base.rb b/railties/lib/generators/base.rb
index ecc71e56c3..564496ad52 100644
--- a/railties/lib/generators/base.rb
+++ b/railties/lib/generators/base.rb
@@ -124,7 +124,7 @@ module Rails
names.each do |name|
unless class_options[name]
aliases = "-" + name.to_s.gsub(/_framework$/, '').split('_').last[0,1]
- class_option name, :type => :string, :default => DEFAULTS[name], :banner => "NAME", :aliases => aliases,
+ class_option name, :type => :default, :default => DEFAULTS[name], :banner => "NAME", :aliases => aliases,
:desc => "#{name.to_s.humanize} to be used"
end