Skip to content

Commit

Permalink
Merge pull request #837 from dleavitt/fix-webpacker-helpers
Browse files Browse the repository at this point in the history
Fix Webpacker helpers in production env
  • Loading branch information
unixmonkey committed Jun 4, 2019
2 parents f03842e + 0086af9 commit 2742687
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/wicked_pdf/wicked_pdf_helper/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def prepend_protocol(source)
end

def precompiled_or_absolute_asset?(source)
Rails.configuration.assets.compile == false ||
!Rails.configuration.respond_to?(:assets) ||
Rails.configuration.assets.compile == false ||
source.to_s[0] == '/' ||
source.to_s.match(/\Ahttps?\:\/\//)
end
Expand Down

0 comments on commit 2742687

Please sign in to comment.