mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
Fix bundler not requiring default group. Follow up to a2babcafd8264c94ebcc03d5237b2daf328d4e3e.
This commit is contained in:
@ -37,8 +37,16 @@ GlobalSetting.load_defaults
|
|||||||
|
|
||||||
require 'pry-rails' if Rails.env.development?
|
require 'pry-rails' if Rails.env.development?
|
||||||
|
|
||||||
if defined?(Bundler) && !Rails.env.production?
|
if defined?(Bundler)
|
||||||
Bundler.require(*Rails.groups(assets: %w(development test profile)))
|
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
|
end
|
||||||
|
|
||||||
module Discourse
|
module Discourse
|
||||||
|
Reference in New Issue
Block a user