diff options
author | Aditya Sanghi <asanghi@me.com> | 2011-05-06 20:29:11 +0530 |
---|---|---|
committer | Aditya Sanghi <asanghi@me.com> | 2011-05-06 20:29:11 +0530 |
commit | 9b5c29038df3ffc4a4038aac7e5cba0c5b088729 (patch) | |
tree | 724b74b4cf35e8b90cb747dd3dfcf694d19f7b11 /railties/lib | |
parent | 75e1e2175d81b7047145768e72a0541b3266abed (diff) | |
download | rails-9b5c29038df3ffc4a4038aac7e5cba0c5b088729.tar.gz rails-9b5c29038df3ffc4a4038aac7e5cba0c5b088729.tar.bz2 rails-9b5c29038df3ffc4a4038aac7e5cba0c5b088729.zip |
default orm and test_framework to false; change application.rb template accordingly
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators.rb | 4 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/application.rb | 10 |
2 files changed, 5 insertions, 9 deletions
diff --git a/railties/lib/rails/generators.rb b/railties/lib/rails/generators.rb index 9be395e989..85c67af19a 100644 --- a/railties/lib/rails/generators.rb +++ b/railties/lib/rails/generators.rb @@ -52,13 +52,13 @@ module Rails :integration_tool => nil, :javascripts => true, :javascript_engine => nil, - :orm => nil, + :orm => false, :performance_tool => nil, :resource_controller => :controller, :scaffold_controller => :scaffold_controller, :stylesheets => true, :stylesheet_engine => nil, - :test_framework => nil, + :test_framework => false, :template_engine => :erb }, diff --git a/railties/lib/rails/generators/rails/app/templates/config/application.rb b/railties/lib/rails/generators/rails/app/templates/config/application.rb index 22d6d09baf..430468afb4 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/application.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/application.rb @@ -1,14 +1,14 @@ require File.expand_path('../boot', __FILE__) -<% unless options[:skip_active_record] -%> +<% if !options[:skip_active_record] && !options[:skip_test_unit] -%> require 'rails/all' <% else -%> # Pick the frameworks you want: -# require "active_record/railtie" +<%= options[:skip_active_record] ? "#" : "" %> require "active_record/railtie" require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" -require "rails/test_unit/railtie" +<%= options[:skip_test_unit] ? "#" : "" %> require "rails/test_unit/railtie" <% end -%> # If you have a Gemfile, require the gems listed there, including any gems @@ -50,10 +50,6 @@ module <%= app_const_base %> # config.action_view.javascript_expansions[:defaults] = %w(prototype prototype_ujs) <% end -%> -<% if options[:skip_test_unit] -%> - config.generators.test_framework = false -<% end -%> - # Configure the default encoding used in templates for Ruby 1.9. config.encoding = "utf-8" |