Browse files

limit latest to 15

  • Loading branch information...
1 parent d27573d commit 04a256f5cfda0015a8e93b72b0a1e0e1632ce105 @ScotterC committed Feb 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tweet_store.rb
View
2 tweet_store.rb
@@ -20,7 +20,7 @@ def initialize
# Retrieves the specified number of tweets, but only if they are more recent
# than the specified timestamp.
- def tweets(limit=100)
+ def tweets(limit=15)
@db.lrange(REDIS_KEY, 0, limit).collect {|t|
Tweet.new(JSON.parse(t))
}#.reject {|t| t.received_at <= since} # In 1.8.7, should use drop_while instead

0 comments on commit 04a256f

Please sign in to comment.