We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b1e91d commit 13da4f0Copy full SHA for 13da4f0
2 files changed
lib/rails_admin/adapters/mongoid.rb
@@ -31,6 +31,7 @@ def get(id, scope = scoped)
31
Mongoid::Errors::InvalidFind
32
Moped::Errors::InvalidObjectId
33
BSON::InvalidObjectId
34
+ BSON::Error::InvalidObjectId
35
].exclude?(e.class.to_s)
36
end
37
lib/rails_admin/adapters/mongoid/bson.rb
@@ -21,6 +21,7 @@ def parse_object_id(value)
21
22
BSON::ObjectId::Invalid
23
24
25
26
27
0 commit comments