Permalink
Browse files

Everyone is running bundler, no need for defensive programming shit

  • Loading branch information...
1 parent d81e76d commit fc7f3daeb603020e6bd180b7065ada7a02625c09 @dhh dhh committed Oct 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/generators/rails/app/templates/config/application.rb
@@ -11,8 +11,8 @@
<%= comment_if :skip_test_unit %>require "rails/test_unit/railtie"
<% end -%>
-# Assume that assets are precompiled for production
-Bundler.require(*Rails.groups(assets: %w(development test))) if defined?(Bundler)
+# Assets should be precompiled for production (so we don't need the gems loaded then)
+Bundler.require(*Rails.groups(assets: %w(development test)))
module <%= app_const_base %>
class Application < Rails::Application

3 comments on commit fc7f3da

There are alternatives to Bundler, aren't there? Is this assumption made across Rails?

Owner

dhh replied Oct 9, 2012

Makes sense, just wasn't clear in the commit message.

Please sign in to comment.