mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:42:16 +08:00
Fix bundler not requiring default group. Follow up to a2babcafd8
.
This commit is contained in:
parent
5a834a05ea
commit
cf235fbd48
|
@ -37,8 +37,16 @@ GlobalSetting.load_defaults
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user