diff --git a/lib/mongoid/document.rb b/lib/mongoid/document.rb index a4fe8f5bdb..2ffcbc9d47 100644 --- a/lib/mongoid/document.rb +++ b/lib/mongoid/document.rb @@ -215,17 +215,6 @@ def _root def to_a [ self ] end - - # Returns nil if document is new, or an array of primary keys if not. - def to_key - new_record? ? nil : [ id ] - end - - # Returns the id of the Document, used in Rails compatibility. - def to_param - id - end - # Observe a notify call from a child +Document+. This will either update # existing attributes on the +Document+ or clear them out for the child if # the clear boolean is provided.