Skip to content

Commit 27c65c7

Browse files
committed
Call belongs_to_required_by_default on top-level Mongoid
1 parent 9bfea79 commit 27c65c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails_admin/adapters/mongoid.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def adapter_supports_joins?
113113
end
114114

115115
def belongs_to_required_by_default
116-
Mongoid.belongs_to_required_by_default
116+
::Mongoid.belongs_to_required_by_default
117117
end
118118

119119
private

0 commit comments

Comments
 (0)