From bbef1e34938e8fdd775c4eadb82a0344837210b2 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 4 May 2015 16:32:31 +1000 Subject: [PATCH] whitelisted correctly later on --- plugins/poll/plugin.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/plugins/poll/plugin.rb b/plugins/poll/plugin.rb index 76f814bef..853e39cde 100644 --- a/plugins/poll/plugin.rb +++ b/plugins/poll/plugin.rb @@ -14,15 +14,6 @@ VOTES_CUSTOM_FIELD ||= "polls-votes".freeze after_initialize do - # PERF, avoids N+1 in serializer - TopicView.add_post_custom_fields_whitelister do |user| - POLLS_CUSTOM_FIELD - end - - TopicView.add_post_custom_fields_whitelister do |user| - VOTES_CUSTOM_FIELD - end - # remove "Vote Now!" & "Show Results" links in emails Email::Styles.register_plugin_style do |fragment| fragment.css(".poll a.cast-votes, .poll a.toggle-results").each(&:remove)