diff options
author | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-06-19 09:27:09 -0600 |
---|---|---|
committer | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-06-19 09:27:09 -0600 |
commit | 9d5f5c43119197b9c522ae121af5564f43d06574 (patch) | |
tree | dfe2b4e4e91646fd26119886e0717e428f9aae2b | |
parent | afa47b7c481210df659706930a9f43d53023ce5e (diff) | |
download | gitlab-ce-9d5f5c43119197b9c522ae121af5564f43d06574.tar.gz |
Fix redis_cacheable deserialization47959-rails5-redis-timewithzone
-rw-r--r-- | app/models/concerns/redis_cacheable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/redis_cacheable.rb b/app/models/concerns/redis_cacheable.rb index b5425295130..3bdc1330d23 100644 --- a/app/models/concerns/redis_cacheable.rb +++ b/app/models/concerns/redis_cacheable.rb @@ -48,7 +48,7 @@ module RedisCacheable def cast_value_from_cache(attribute, value) if Gitlab.rails5? - self.class.type_for_attribute(attribute).cast(value) + self.class.type_for_attribute(attribute.to_s).cast(value) else self.class.column_for_attribute(attribute).type_cast_from_database(value) end |