Permalink
Browse files

new version

  • Loading branch information...
1 parent 7be56dc commit b49b4e08d0c7bbb802737dd4911e81d5b1876bc9 @le0pard le0pard committed Dec 1, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/mongodb_logger/server.rb
  2. +1 −1 lib/mongodb_logger/version.rb
@@ -103,12 +103,12 @@ def show(page, layout = true)
:selector => {'_id' => { '$gt' => BSON::ObjectId(log_last_id) }})
while log = tail.next
buffer << partial(:"shared/log", :object => log)
- log_last_id = log['_id']
+ log_last_id = log["_id"].to_s
end
buffer.reverse!
else
@log = @collection.find_one({}, {:sort => ['$natural', -1]})
- log_last_id = @log['_id'] unless @log.blank?
+ log_last_id = @log["_id"].to_s unless @log.blank?
end
content_type :json
@@ -1,3 +1,3 @@
module MongodbLogger
- VERSION = "0.1.7"
+ VERSION = "0.1.8"
end

0 comments on commit b49b4e0

Please sign in to comment.