Skip to content

A platform for community discussion. Free, open, simple.

FIX: `ignored_columns` was called twice.

Guo Xiang Tana17f5052a348
diff --git a/app/models/topic.rb b/app/models/topic.rb
index fa3ade92609..cf7b59bd1cc 100644
--- a/app/models/topic.rb
+++ b/app/models/topic.rb
@@ -13,8 +13,8 @@ require_dependency 'topic_posters_summary'
require_dependency 'topic_featured_users'
class Topic < ActiveRecord::Base
- # TODO: Remove this after 19th Dec 2018
- self.ignored_columns = %w{vote_count}
+ # TODO remove 01-01-2019
+ self.ignored_columns = ["percent_rank", "vote_count"]
class UserExists < StandardError; end
include ActionView::Helpers::SanitizeHelper
@@ -34,9 +34,6 @@ class Topic < ActiveRecord::Base
def_delegator :notifier, :mute!, :notify_muted!
def_delegator :notifier, :toggle_mute, :toggle_mute
- # TODO remove 01-01-2019
- self.ignored_columns = ["percent_rank"]
-
attr_accessor :allowed_user_ids, :tags_changed, :includes_destination_category
DiscourseEvent.on(:site_setting_saved) do |site_setting|