Permalink
Browse files

Everyone is running bundler, no need for defensive programming shit

  • Loading branch information...
dhh committed Oct 8, 2012
1 parent d81e76d commit fc7f3daeb603020e6bd180b7065ada7a02625c09
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

@billywatson

This comment has been minimized.

Show comment
Hide comment
@billywatson

billywatson Oct 9, 2012

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

billywatson replied Oct 9, 2012

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

@dhh

This comment has been minimized.

Show comment
Hide comment
@dhh

dhh Oct 9, 2012

Member
Member

dhh replied Oct 9, 2012

@billywatson

This comment has been minimized.

Show comment
Hide comment
@billywatson

billywatson Oct 9, 2012

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

billywatson replied Oct 9, 2012

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

Please sign in to comment.