From 19290d38322287fcb8e0152a7ed3b7f01033b57e Mon Sep 17 00:00:00 2001 From: Brandon Robins Date: Wed, 31 Jan 2018 22:20:36 -0600 Subject: [PATCH] Fix call to `etag` method --- lib/calligraphy/resource/file_resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/calligraphy/resource/file_resource.rb b/lib/calligraphy/resource/file_resource.rb index 6ea7b22..99ce347 100644 --- a/lib/calligraphy/resource/file_resource.rb +++ b/lib/calligraphy/resource/file_resource.rb @@ -585,7 +585,7 @@ module Calligraphy end def getetag(prop) - cache_key = ActiveSupport::Cache.expand_cache_key [@resource.etag, ''] + cache_key = ActiveSupport::Cache.expand_cache_key [etag, ''] prop.content = "W/\"#{Digest::MD5.hexdigest(cache_key)}\"" prop