Fix top_topic.rb to be compatible with ruby 1.9
This commit is contained in:
parent
eca291c9fc
commit
1781b290cb
|
@ -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 New Issue