Skip to content

Commit

Permalink
Show versions in the just updated list when they have at least one ve…
Browse files Browse the repository at this point in the history
…rsion.
  • Loading branch information
cmeiklejohn committed Feb 2, 2012
1 parent 2a27056 commit 5173d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def self.most_recent
end

def self.just_updated(limit=5)
where("versions.rubygem_id IN (SELECT versions.rubygem_id FROM versions GROUP BY versions.rubygem_id HAVING COUNT(versions.id) > 1)").
where("versions.rubygem_id IN (SELECT versions.rubygem_id FROM versions GROUP BY versions.rubygem_id HAVING COUNT(versions.id) >= 1)").
joins(:rubygem).
indexed.
by_created_at.
Expand Down

0 comments on commit 5173d9f

Please sign in to comment.