Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix user-specified option precedence in mongo unserialization.

  • Loading branch information...
commit 50ac0f67e05d08b03cc131ff1cca28230af00c20 1 parent c2532d6
@louismullie authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/treat/workers/formatters/unserializers/mongo.rb
View
2  lib/treat/workers/formatters/unserializers/mongo.rb
@@ -17,7 +17,7 @@ def self.unserialize(entity, options={})
@@database ||= Mongo::Connection.
new(Treat.databases.mongo.host).
- db(Treat.databases.mongo.db || db)
+ db(db || Treat.databases.mongo.db)
supertype = Treat::Entities.const_get(
entity.type.to_s.capitalize.intern).superclass.mn.downcase
Please sign in to comment.
Something went wrong with that request. Please try again.