Fix top_topic.rb to be compatible with ruby 1.9

This commit is contained in:
Neil Lalonde 2013-12-27 16:16:25 -05:00
parent eca291c9fc
commit 1781b290cb
1 changed files with 2 additions and 2 deletions

View File

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