diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-01 10:48:59 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-01 10:48:59 +0100 |
commit | a8c5d22c230ae46f410eed68c9b63ed31379ebbf (patch) | |
tree | e680f6d3d33f2fe0e63d4e6d94274d382029a0ae /railties/lib/rails | |
parent | 209235165266ff39f2d14d02b497d7d703788104 (diff) | |
download | rails-a8c5d22c230ae46f410eed68c9b63ed31379ebbf.tar.gz rails-a8c5d22c230ae46f410eed68c9b63ed31379ebbf.tar.bz2 rails-a8c5d22c230ae46f410eed68c9b63ed31379ebbf.zip |
Add config.generators.fallbacks.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/configuration.rb | 3 | ||||
-rw-r--r-- | railties/lib/rails/generators.rb | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/configuration.rb b/railties/lib/rails/configuration.rb index 6a4ebe883b..a7519397a6 100644 --- a/railties/lib/rails/configuration.rb +++ b/railties/lib/rails/configuration.rb @@ -88,11 +88,12 @@ module Rails end class Generators #:nodoc: - attr_accessor :aliases, :options, :colorize_logging + attr_accessor :aliases, :options, :fallbacks, :colorize_logging def initialize @aliases = Hash.new { |h,k| h[k] = {} } @options = Hash.new { |h,k| h[k] = {} } + @fallbacks = {} @colorize_logging = true end diff --git a/railties/lib/rails/generators.rb b/railties/lib/rails/generators.rb index 90b513fcb4..8c54014fcb 100644 --- a/railties/lib/rails/generators.rb +++ b/railties/lib/rails/generators.rb @@ -67,6 +67,7 @@ module Rails no_color! unless config.colorize_logging aliases.deep_merge! config.aliases options.deep_merge! config.options + fallbacks.merge! config.fallbacks end def self.aliases #:nodoc: |