1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ensure expires_in and created_at timestamps aren't nil when attempting to upgrade cache

This commit is contained in:
Joshua Peek 2012-10-10 13:46:25 -05:00
parent bf24ba98b3
commit b21f24d980

View file

@ -644,7 +644,7 @@ module ActiveSupport
@c = @compressed
remove_instance_variable(:@compressed)
end
if defined?(@expires_in) && defined?(@created_at)
if defined?(@expires_in) && defined?(@created_at) && @expires_in && @created_at
@x = (@created_at + @expires_in).to_i
remove_instance_variable(:@created_at)
remove_instance_variable(:@expires_in)