Skip to content

Commit 7cbabe0

Browse files
committed
Merge pull request activeadmin#83 from Claster/master
Changing primary key
2 parents f33e41e + 5fff9df commit 7cbabe0

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)