DEV: Don't require non production bundler assets in production.
This commit is contained in:
parent
a5b804fec4
commit
a2babcafd8
|
@ -37,7 +37,7 @@ GlobalSetting.load_defaults
|
|||
|
||||
require 'pry-rails' if Rails.env.development?
|
||||
|
||||
if defined?(Bundler)
|
||||
if defined?(Bundler) && !Rails.env.production?
|
||||
Bundler.require(*Rails.groups(assets: %w(development test profile)))
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue