Skip to content

Commit

Permalink
filter use less tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
chloerei committed Mar 11, 2012
1 parent 4c06e11 commit 43d1415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/tag.rb
Expand Up @@ -5,7 +5,7 @@ class Tag
field :value, :type => Integer, :default => 0

def self.suggest_tags(limit = 500)
self.order_by([[:value, :desc]]).limit(limit).map(&:_id)
self.where(:value.gt => 1).order_by([[:value, :desc]]).limit(limit).map(&:_id)
end

def self.recount
Expand Down

0 comments on commit 43d1415

Please sign in to comment.