Skip to content

Commit

Permalink
Fix bundler not requiring default group. Follow up to a2babca.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed May 2, 2019
1 parent 5a834a0 commit cf235fb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,16 @@

require 'pry-rails' if Rails.env.development?

if defined?(Bundler) && !Rails.env.production?
Bundler.require(*Rails.groups(assets: %w(development test profile)))
if defined?(Bundler)
bundler_groups = [:default]

if !Rails.env.production?
bundler_groups = bundler_groups.concat(Rails.groups(
assets: %w(development test profile)
))
end

Bundler.require(*bundler_groups)
end

module Discourse
Expand Down

0 comments on commit cf235fb

Please sign in to comment.