lib/hanko/fingerprint.rb in hanko-0.1.4 vs lib/hanko/fingerprint.rb in hanko-0.1.5
- old
+ new
@@ -4,15 +4,13 @@
class Fingerprint
class << self
attr_writer :digest_class, :cachable
def pon(assets_dir, source)
- fingerprint = generate_pon(assets_dir, source)
-
if cachable?
- cached_pon[source] ||= fingerprint
+ cached_pon[source] ||= generate_pon(assets_dir, source)
else
- fingerprint
+ generate_pon(assets_dir, source)
end
end
def digest_class=(klass)
@cached_pon = {}