diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-06 17:32:06 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-06 17:32:06 +0100 |
commit | 6958eac1a00a4ab33e3facc70c80a07492288196 (patch) | |
tree | 06df21a64b2111690701b273e121620437afe155 /railties/lib/rails/engine.rb | |
parent | 1d9d9d2d89a90a85f27a1909e3c435c070bc1b40 (diff) | |
download | rails-6958eac1a00a4ab33e3facc70c80a07492288196.tar.gz rails-6958eac1a00a4ab33e3facc70c80a07492288196.tar.bz2 rails-6958eac1a00a4ab33e3facc70c80a07492288196.zip |
Add config.generators.templates to provide alternative paths for template lookup.
Diffstat (limited to 'railties/lib/rails/engine.rb')
-rw-r--r-- | railties/lib/rails/engine.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 33d62c8155..5983a9ee6b 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -102,6 +102,10 @@ module Rails app.metal_loader.paths.unshift(*paths.app.metals.to_a) end + initializer :add_generator_templates do |app| + config.generators.templates.unshift(*paths.lib.templates.to_a) + end + initializer :load_application_initializers do paths.config.initializers.to_a.sort.each do |initializer| load(initializer) |