diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-09-30 19:17:36 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-03 23:32:03 +0200 |
commit | adfd43a4daf08cc9a801a0b6a039dd109ce4e81f (patch) | |
tree | bfde62176f712ffa035a12c322c51977ac33a34f /railties/lib | |
parent | 5f292c944155851df7e493f153cfb9d64c964388 (diff) | |
download | rails-adfd43a4daf08cc9a801a0b6a039dd109ce4e81f.tar.gz rails-adfd43a4daf08cc9a801a0b6a039dd109ce4e81f.tar.bz2 rails-adfd43a4daf08cc9a801a0b6a039dd109ce4e81f.zip |
Add documentation on app_generators
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/engine.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 9ae235b818..ba89bce928 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -47,6 +47,26 @@ module Rails # end # end # + # == Generators + # + # You can set up generators for engine with config.generators method: + # + # class MyEngine < Rails::Engine + # config.generators do |g| + # g.orm :active_record + # g.template_engine :erb + # g.test_framework :test_unit + # end + # end + # + # You can also set generators for application by using config.app_generators: + # + # class MyEngine < Rails::Engine + # # note that you can also pass block to app_generators in the same way you + # # can pass it to generators method + # config.app_generators.orm :datamapper + # end + # # == Paths # # Since Rails 3.0, both your Application and Engines do not have hardcoded paths. |