BUGFIX: the /top page now shows the first non-empty period

This commit is contained in:
Régis Hanol
2014-05-07 19:04:39 +02:00
parent 76cb4bf0a5
commit 21e8ae0eca
5 changed files with 39 additions and 37 deletions

View File

@ -96,12 +96,6 @@ class TopicQuery
end
end
TopTopic.periods.each do |period|
define_method("list_top_#{period}") do
list_top_for(period)
end
end
def list_topics_by(user)
create_list(:user_topics) do |topics|
topics.where(user_id: user.id)