FIX: `ignored_columns` was called twice.

This commit is contained in:
Guo Xiang Tan 2018-07-11 09:52:37 +08:00
parent 665ade50c6
commit a17f5052a3
1 changed files with 2 additions and 5 deletions

View File

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