8000 fix primary_key (an old bug that still exist here) · activeadmin/activeadmin-mongoid@5840fe9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5840fe9

Browse files
committed
fix primary_key (an old bug that still exist here)
1 parent 3ff2ade commit 5840fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/mongoid/document.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class << self
3939
end
4040
end
4141

42-
self.primary_key ||= [:_id]
42+
self.primary_key ||= :_id
4343
end
4444

4545
module ClassMethods

0 commit comments

Comments
 (0)
0