Skip to content

Commit

Permalink
Better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed May 17, 2024
1 parent 0532ddd commit 0d8d1ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/propshaft/asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def ==(other_asset)

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

def already_digested?
Expand Down
2 changes: 1 addition & 1 deletion lib/propshaft/load_path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def find(asset_name)
assets_by_path[asset_name]
end

def find_references_by(asset)
def find_referenced_by(asset)
compilers.referenced_by(asset)
end

Expand Down

0 comments on commit 0d8d1ab

Please sign in to comment.