Merge pull request #961 from NARKOZ/load_assets_group
load assets group to allow lazy compilation in production
This commit is contained in:
commit
f48e0cca6d
|
@ -4,9 +4,9 @@ require 'rails/all'
|
|||
|
||||
if defined?(Bundler)
|
||||
# If you precompile assets before deploying to production, use this line
|
||||
Bundler.require *Rails.groups(:assets => %w(development test))
|
||||
# Bundler.require *Rails.groups(:assets => %w(development test))
|
||||
# If you want your assets lazily compiled in production, use this line
|
||||
# Bundler.require(:default, :assets, Rails.env)
|
||||
Bundler.require(:default, :assets, Rails.env)
|
||||
end
|
||||
|
||||
module Gitlab
|
||||
|
|
Loading…
Reference in a new issue