You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were updating popHealth to the cypress3 libs and mongoid5. Ran into a problem with lib/generator/execution.rb, which has a reference to Moped::BSON. (mongoid5 uses the Mongo library and not Moped.)
Removing the "Moped::" solves the problem. An alternative, more general, fix would be to use the mongoid/mongoid-compatibility lib. My fix diffs removing the Moped reference.:
diff --git a/lib/generator/execution.rb b/lib/generator/execution.rb
index 7d9bf93..d6feb82 100644
--- a/lib/generator/execution.rb
+++ b/lib/generator/execution.rb
@@ -22,7 +22,7 @@ module HQMF2JS
var enable_rationale = <%= enable_rationale %>;
var short_circuit = <%= short_circuit %>;
- <% if (!test_id.nil? && test_id.class==Moped::BSON::ObjectId) %>
+ <% if (!test_id.nil? && test_id.class==BSON::ObjectId) %>
var test_id = new ObjectId(\"<%= test_id %>\");
<% else %>
var test_id = null;
We were updating popHealth to the cypress3 libs and mongoid5. Ran into a problem with lib/generator/execution.rb, which has a reference to Moped::BSON. (mongoid5 uses the Mongo library and not Moped.)
Removing the "Moped::" solves the problem. An alternative, more general, fix would be to use the mongoid/mongoid-compatibility lib. My fix diffs removing the Moped reference.: