Skip to content

Commit

Permalink
Revert "Reference original implementation directly"
Browse files Browse the repository at this point in the history
This reverts commit e8fe2d8.
  • Loading branch information
aduth committed Sep 27, 2023
1 parent bcaf421 commit 72ac3b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/extensions/propshaft/asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

module Extensions
Propshaft::Asset.class_eval do
alias_method :original_digest, :digest

def digest
@digest ||= original_digest[0...7]
@digest ||= Digest::SHA1.hexdigest("#{content}#{version}")[0...7]
end
end
end

0 comments on commit 72ac3b7

Please sign in to comment.