From 90dd1609eb029f75792e343081210cd99ff3df61 Mon Sep 17 00:00:00 2001 From: Darren Lee Date: Mon, 11 Sep 2017 11:01:24 -0700 Subject: [PATCH] FIX: memoization in PostAnalyzer.raw_mentions (#5172) Due to a missing 's' when assigning the computed value to @raw_mentions, the raw_mentions function in PostAnalyzer would never retrieve a memoized value. --- app/models/post_analyzer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/post_analyzer.rb b/app/models/post_analyzer.rb index e0105cce4eb..84f018bfa8e 100644 --- a/app/models/post_analyzer.rb +++ b/app/models/post_analyzer.rb @@ -60,7 +60,7 @@ class PostAnalyzer raw_mentions.compact! raw_mentions.uniq! - @raw_mention = raw_mentions + @raw_mentions = raw_mentions end # from rack ... compat with ruby 2.2