-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
class OneModel
include Mongoid::Document
field :a
end
class AnotherModel
include Mongoid::Document
field :a
end
OneModel.with(collection: 'another_models').find_or_create_by(:a => 1)
OneModel.count => 1
AnotherModel.count => 0