Skip to content

Commit

Permalink
Merge branch 'master' of github.com:durran/mongoid
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacques Crocker committed Jun 4, 2010
2 parents dc9d3cd + b475562 commit db355e4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/mongoid/document.rb
Expand Up @@ -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.
Expand Down

0 comments on commit db355e4

Please sign in to comment.