opsb-ziggy 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/ziggy.rb +1 -1
- data/ziggy.gemspec +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/ziggy.rb
CHANGED
@@ -48,7 +48,7 @@ module Ziggy
|
|
48
48
|
key = self.class.build_key(self, method, args)
|
49
49
|
return Rails.cache.read(key) if Rails.cache.exist?(key)
|
50
50
|
result = send(method_without_cache, *args)
|
51
|
-
Rails.cache.write(key, result, :expires_in => expire_after(method))
|
51
|
+
Rails.cache.write(key, result, :expires_in => self.class.expire_after(method))
|
52
52
|
result
|
53
53
|
end
|
54
54
|
end
|
data/ziggy.gemspec
CHANGED