Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
fix name: BSON::ObjectID => BSON::ObjectId
Browse files Browse the repository at this point in the history
  • Loading branch information
saberma committed Oct 20, 2010
1 parent 9101fb0 commit b33595a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid_acts_as_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def build(attributes)
#To delete object use <tt>object.destroy</tt>.
def delete(object_or_id)
object = case object_or_id
when String, BSON::ObjectID
when String, BSON::ObjectId
@parent.class.find object_or_id
else
object_or_id
Expand Down

0 comments on commit b33595a

Please sign in to comment.