five_last_week

This commit is contained in:
pardoam
2015-12-02 14:48:41 +00:00
parent 3f68c6726a
commit b2686cc6d1
3 changed files with 4 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ module CommentableActions
end
def tag_cloud
resource_model.tag_counts.order("#{resource_name.pluralize}_count": :desc, name: :asc).limit(20)
resource_model.last_week.tag_counts.order("#{resource_name.pluralize}_count": :desc, name: :asc).limit(5)
end
def load_featured_tags