From 09c288f0c5b5f9da4473bb321cccb766d9f59d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 8 Jul 2009 12:55:50 +0200 Subject: Add the new generators environment and update commands. --- .../app/templates/config/environments/generators.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 railties/lib/generators/rails/app/templates/config/environments/generators.rb (limited to 'railties/lib/generators/rails/app/templates') diff --git a/railties/lib/generators/rails/app/templates/config/environments/generators.rb b/railties/lib/generators/rails/app/templates/config/environments/generators.rb new file mode 100644 index 0000000000..503a281e20 --- /dev/null +++ b/railties/lib/generators/rails/app/templates/config/environments/generators.rb @@ -0,0 +1,19 @@ +# Settings specified here will take precedence over those in config/environment.rb + +# Cache classes and log when you accidentally call methods on nil. +config.cache_classes = false +config.whiny_nils = true + +# We do not need any framework on generators. They are loaded on demand. +config.frameworks.clear + +# Configure generators. Below you have the default values, delete them if you want. +config.generators do |g| + g.helper = true + g.layout = true + g.orm = :active_record + g.stylesheets = true + g.template_engine = :erb + g.test_framework = :test_unit + g.timestamps = true +end -- cgit v1.2.3