Skip to content

Commit

Permalink
Merge pull request #1067 from Gregurevic/shakapacker-7-compatitiblity
Browse files Browse the repository at this point in the history
Shakapacker 7 compatibility (#1066)
  • Loading branch information
unixmonkey authored Aug 17, 2023
2 parents 4abf255 + 995126b commit 3b99205
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/wicked_pdf/wicked_pdf_helper/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,11 @@ def running_in_development?
end

def webpacker_version
return unless defined?(Webpacker)

# If webpacker is used, need to check for version
require 'webpacker/version'

Webpacker::VERSION
if defined?(Shakapacker)
Shakapacker::VERSION
elsif defined?(Webpacker)
Webpacker::VERSION
end
end
end
end
Expand Down

0 comments on commit 3b99205

Please sign in to comment.