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:
parent
bf24ba98b3
commit
b21f24d980
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue