Fix redis_cacheable deserialization

This commit is contained in:
Mario de la Ossa 2018-06-19 09:27:09 -06:00
parent afa47b7c48
commit 9d5f5c4311
No known key found for this signature in database
GPG Key ID: 20CA8F4C6A20761B
1 changed files with 1 additions and 1 deletions

View File

@ -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