diff options
author | Yehuda Katz <wycats@183.207.128.10.in-addr.arpa.noptr.antlabs.com> | 2010-01-09 11:01:54 -0600 |
---|---|---|
committer | Yehuda Katz <wycats@183.207.128.10.in-addr.arpa.noptr.antlabs.com> | 2010-01-09 11:04:06 -0600 |
commit | 8665c754cb61c947cd55f8886c28188050aed78d (patch) | |
tree | a246ab1a1437281ca6f32f689c5e7ffc26be0447 /railties/lib/rails | |
parent | 7e6530b17003b3c42ebbfa8119c3fb7f3aea64b2 (diff) | |
download | rails-8665c754cb61c947cd55f8886c28188050aed78d.tar.gz rails-8665c754cb61c947cd55f8886c28188050aed78d.tar.bz2 rails-8665c754cb61c947cd55f8886c28188050aed78d.zip |
Add a generator_paths config option
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/configuration.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/railties/lib/rails/configuration.rb b/railties/lib/rails/configuration.rb index c180031c61..800a8215b8 100644 --- a/railties/lib/rails/configuration.rb +++ b/railties/lib/rails/configuration.rb @@ -22,15 +22,17 @@ module Rails end end - attr_reader :middleware + attr_reader :middleware, :generator_paths def initialize(base = nil) if base - @options = base.options.dup - @middleware = base.middleware.dup + @options = base.options.dup + @middleware = base.middleware.dup + @generator_paths = base.generator_paths.dup else - @options = Hash.new { |h,k| h[k] = ActiveSupport::OrderedOptions.new } - @middleware = self.class.default_middleware_stack + @options = Hash.new { |h,k| h[k] = ActiveSupport::OrderedOptions.new } + @middleware = self.class.default_middleware_stack + @generator_paths = [] end end |