Skip to content

Commit

Permalink
Match language
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed May 17, 2024
1 parent bece10b commit f894726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/propshaft/asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def length
end

def digest
@digest ||= Digest::SHA1.hexdigest("#{content_with_compile_dependencies}#{load_path.version}").first(8)
@digest ||= Digest::SHA1.hexdigest("#{content_with_compile_references}#{load_path.version}").first(8)
end

def digested_path
Expand All @@ -41,7 +41,7 @@ def ==(other_asset)
end

private
def content_with_compile_dependencies
def content_with_compile_references
content + load_path.find_references_by(self).collect(&:content).join
end

Expand Down

0 comments on commit f894726

Please sign in to comment.