From 9d5f5c43119197b9c522ae121af5564f43d06574 Mon Sep 17 00:00:00 2001 From: Mario de la Ossa Date: Tue, 19 Jun 2018 09:27:09 -0600 Subject: [PATCH] Fix redis_cacheable deserialization --- app/models/concerns/redis_cacheable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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