lib/active_support/cache.rb in activesupport-4.2.0 vs lib/active_support/cache.rb in activesupport-4.2.1.rc1
- old
+ new
@@ -620,10 +620,10 @@
end
# Check if the entry is expired. The +expires_in+ parameter can override
# the value set when the entry was created.
def expired?
- convert_version_4beta1_entry! if defined?(@value)
+ convert_version_4beta1_entry! if defined?(@v)
@expires_in && @created_at + @expires_in <= Time.now.to_f
end
def expires_at
@expires_in ? @created_at + @expires_in : nil