mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Fix top_topic.rb to be compatible with ruby 1.9
This commit is contained in:
parent
eca291c9fc
commit
1781b290cb
1 changed files with 2 additions and 2 deletions
|
@ -3,11 +3,11 @@ class TopTopic < ActiveRecord::Base
|
|||
belongs_to :topic
|
||||
|
||||
def self.periods
|
||||
@periods ||= %i{yearly monthly weekly daily}
|
||||
@periods ||= [:yearly, :monthly, :weekly, :daily]
|
||||
end
|
||||
|
||||
def self.sort_orders
|
||||
@sort_orders ||= %i{posts views likes}
|
||||
@sort_orders ||= [:posts, :views, :likes]
|
||||
end
|
||||
|
||||
def self.refresh!
|
||||
|
|
Loading…
Reference in a new issue