2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Remove ancient votes code that is no longer used.

This commit is contained in:
Guo Xiang Tan 2018-02-28 14:37:22 +08:00
parent 764b6c005c
commit e7a7356986
3 changed files with 1 additions and 39 deletions

View file

@ -453,14 +453,6 @@ class Topic < ActiveRecord::Base
((Time.zone.now - created_at) / 1.minute).round
end
def has_meta_data_boolean?(key)
meta_data_string(key) == 'true'
end
def meta_data_string(key)
custom_fields[key.to_s]
end
def self.listable_count_per_day(start_date, end_date, category_id = nil)
result = listable_topics.where('created_at >= ? and created_at <= ?', start_date, end_date)
result = result.where(category_id: category_id) if category_id