aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/generators.rb')
-rw-r--r--railties/lib/generators.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/railties/lib/generators.rb b/railties/lib/generators.rb
index 6935cb8319..3286e8b2dd 100644
--- a/railties/lib/generators.rb
+++ b/railties/lib/generators.rb
@@ -17,8 +17,7 @@ require 'generators/named_base'
module Rails
module Generators
- DEFAULT_ALIASES = Hash.new{ |h,k| h[k] = {} }
- DEFAULT_ALIASES.merge!(
+ DEFAULT_ALIASES = {
:rails => {
:actions => '-a',
:orm => '-o',
@@ -37,10 +36,9 @@ module Rails
:generator => '-g',
:tasks => '-r'
}
- )
+ }
- DEFAULT_OPTIONS = Hash.new{ |h,k| h[k] = {} }
- DEFAULT_OPTIONS.merge!(
+ DEFAULT_OPTIONS = {
:active_record => {
:migration => true,
:timestamps => true
@@ -74,7 +72,7 @@ module Rails
:generator => false,
:tasks => false
}
- )
+ }
def self.aliases
@@aliases ||= DEFAULT_ALIASES.dup