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

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!