We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c23bc98 commit 4e9366fCopy full SHA for 4e9366f
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