Skip to content

Commit 5fff9df

Browse files
committed
Changing primary key
1 parent f33e41e commit 5fff9df

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
@@ -45,7 +45,7 @@ class << self
4545
end
4646
end
4747

48-
self.primary_key ||= [:_id]
48+
self.primary_key ||= :_id
4949

5050
end
5151

0 commit comments

Comments
 (0)