lib/propshaft/asset.rb in propshaft-0.1.7 vs lib/propshaft/asset.rb in propshaft-0.2.0

- old
+ new

@@ -30,9 +30,13 @@ else logical_path.sub(/\.(\w+)$/) { |ext| "-#{digest}#{ext}" } end end + def fresh?(digest) + self.digest == digest || already_digested? + end + def ==(other_asset) logical_path.hash == other_asset.logical_path.hash end private