mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: ignored_columns
was called twice.
This commit is contained in:
parent
665ade50c6
commit
a17f5052a3
@ -13,8 +13,8 @@ require_dependency 'topic_posters_summary'
|
|||||||
require_dependency 'topic_featured_users'
|
require_dependency 'topic_featured_users'
|
||||||
|
|
||||||
class Topic < ActiveRecord::Base
|
class Topic < ActiveRecord::Base
|
||||||
# TODO: Remove this after 19th Dec 2018
|
# TODO remove 01-01-2019
|
||||||
self.ignored_columns = %w{vote_count}
|
self.ignored_columns = ["percent_rank", "vote_count"]
|
||||||
|
|
||||||
class UserExists < StandardError; end
|
class UserExists < StandardError; end
|
||||||
include ActionView::Helpers::SanitizeHelper
|
include ActionView::Helpers::SanitizeHelper
|
||||||
@ -34,9 +34,6 @@ class Topic < ActiveRecord::Base
|
|||||||
def_delegator :notifier, :mute!, :notify_muted!
|
def_delegator :notifier, :mute!, :notify_muted!
|
||||||
def_delegator :notifier, :toggle_mute, :toggle_mute
|
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
|
attr_accessor :allowed_user_ids, :tags_changed, :includes_destination_category
|
||||||
|
|
||||||
DiscourseEvent.on(:site_setting_saved) do |site_setting|
|
DiscourseEvent.on(:site_setting_saved) do |site_setting|
|
||||||
|
Loading…
Reference in New Issue
Block a user