Permalink
Browse files

collections: fix response value on success

  • Loading branch information...
1 parent 03b0cd5 commit d6f4b2cee9de63856d31b88b1f2e5a4fa01014f8 @pawelpacana pawelpacana committed with Sep 8, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/em-mongo/database.rb
View
@@ -70,9 +70,10 @@ def collections
response = RequestResponse.new
name_resp = collection_names
name_resp.callback do |names|
- response.succeed names.map do |name|
+ collections = names.map do |name|
EM::Mongo::Collection.new(@db_name, name, @em_connection)
end
+ response.succeed collections
end
name_resp.errback { |err| response.fail err }
response

0 comments on commit d6f4b2c

Please sign in to comment.