Skip to content

Commit

Permalink
Merge pull request #1099 from rioug/1098-fix-webpacker-compatibility
Browse files Browse the repository at this point in the history
Fix webpacker compatibility
  • Loading branch information
unixmonkey authored Jan 30, 2024
2 parents fbf504b + 12f5115 commit 549e00c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/wicked_pdf/wicked_pdf_helper/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,10 @@ def running_in_development?

def webpacker_version
if defined?(Shakapacker)
require 'shakapacker/version'
Shakapacker::VERSION
elsif defined?(Webpacker)
require 'webpacker/version'
Webpacker::VERSION
end
end
Expand Down

0 comments on commit 549e00c

Please sign in to comment.