DEV: Don't require non production bundler assets in production.

This commit is contained in:
Guo Xiang Tan 2019-05-02 10:52:07 +08:00
parent a5b804fec4
commit a2babcafd8
1 changed files with 1 additions and 1 deletions

View File

@ -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