Permalink
Browse files

latest

  • Loading branch information...
1 parent def2f1f commit 2dbea8c8a99cd1b4a7c3f7dceb4c5260a6044592 pnts committed Mar 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 happstr.rb
View
@@ -86,7 +86,7 @@ class Checkin
end
get '/latest' do
- Checkin.count().to_s + "<br />" +
+ Checkin.count(:source.exists => true, :comment.exists => true).to_s + "<br />" +
Checkin.order_by({created_at: -1}).limit(40).to_a.map do |checkin|
"#{checkin.created_at} #{checkin.source}\t#{checkin.comment}"
end.join("<br />")

0 comments on commit 2dbea8c

Please sign in to comment.