diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-02-03 22:08:48 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-02-03 23:56:51 -0800 |
commit | db15e49ddf64afd982ddb52e7d0487314f7dcf97 (patch) | |
tree | 2aa4211253a00e0ae425294e895a4b45d8f85654 /railties/lib/generators/rails/app | |
parent | 031139bb717d37f29bc3daf3a6d40ab2a9d7d3fc (diff) | |
download | rails-db15e49ddf64afd982ddb52e7d0487314f7dcf97.tar.gz rails-db15e49ddf64afd982ddb52e7d0487314f7dcf97.tar.bz2 rails-db15e49ddf64afd982ddb52e7d0487314f7dcf97.zip |
Autorequire bundled libraries by default
Diffstat (limited to 'railties/lib/generators/rails/app')
-rw-r--r-- | railties/lib/generators/rails/app/templates/config/boot.rb | 5 |
1 files changed, 4 insertions, 1 deletions
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 -%> |