Skip to content

Commit bbc19aa

Browse files
committed
Load gems of assets group before of precompile
1 parent 7f4ebd3 commit bbc19aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/sprockets/rails/task.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def define
1212
# Override this task change the loaded dependencies
1313
desc "Load asset compile environment"
1414
task :environment do
15+
# Load gems in assets group of Gemfile
16+
Bundler.require(:assets) if defined?(Bundler)
1517
# Load full Rails environment by default
1618
Rake::Task['environment'].invoke
1719
end

0 commit comments

Comments
 (0)