Skip to content

Commit

Permalink
list 50 popular tags instead of 15 on admin page (to get around bot b…
Browse files Browse the repository at this point in the history
…loat);
  • Loading branch information
axavio committed Jun 10, 2012
1 parent 9fc17e0 commit 23409be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admins_controller.rb
Expand Up @@ -39,7 +39,7 @@ def weekly_user_stats
end

def stats
@popular_tags = ActsAsTaggableOn::Tagging.joins(:tag).limit(15).count(:group => :tag, :order => 'count(taggings.id) DESC')
@popular_tags = ActsAsTaggableOn::Tagging.joins(:tag).limit(50).count(:group => :tag, :order => 'count(taggings.id) DESC')

case params[:range]
when "week"
Expand Down

0 comments on commit 23409be

Please sign in to comment.