Skip to content

Commit

Permalink
Optimization: _id just does this behind the scenes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Sep 21, 2012
1 parent 6bc16b5 commit 4c7419a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo_mapper/plugins/keys.rb
Expand Up @@ -233,7 +233,7 @@ def update_attribute(name, value)
end

def id
_id
self[:_id]
end

def id=(value)
Expand Down

0 comments on commit 4c7419a

Please sign in to comment.