From db15e49ddf64afd982ddb52e7d0487314f7dcf97 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 3 Feb 2010 22:08:48 -0800 Subject: Autorequire bundled libraries by default --- railties/lib/generators/rails/app/templates/config/boot.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'railties/lib/generators/rails/app') diff --git a/railties/lib/generators/rails/app/templates/config/boot.rb b/railties/lib/generators/rails/app/templates/config/boot.rb index 7407d6143a..03396113e8 100644 --- a/railties/lib/generators/rails/app/templates/config/boot.rb +++ b/railties/lib/generators/rails/app/templates/config/boot.rb @@ -16,6 +16,9 @@ rescue LoadError # require 'rubygems' end +# Auto-require all bundled libraries. +Bundler.require + <% unless options[:skip_activerecord] -%> require 'rails/all' @@ -40,4 +43,4 @@ require "action_view/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "rails/test_unit/railtie" -<% end -%> \ No newline at end of file +<% end -%> -- cgit v1.2.3