Skip to content

Commit

Permalink
Need to support 1.8.6 on this branch, remove the tap
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed May 17, 2010
1 parent f204744 commit fe118e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid/associations/embeds_many.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def clear
# The newly created Document.
def create(attrs = {}, type = nil)
document = build(attrs, type)
document.tap(&:save)
document.save; document
end

# Creates a new Document and adds it to the association collection. The
Expand Down

0 comments on commit fe118e2

Please sign in to comment.