Fix example in doc comment.

This commit is contained in:
Doug Orleans 2012-09-03 02:40:51 -04:00 committed by Zach Dennis
parent 9fd19a36bd
commit d0c1055b65

View file

@ -137,8 +137,8 @@ class ActiveRecord::Base
#
# # Example synchronizing unsaved/new instances in memory by using a uniqued imported field
# posts = [BlogPost.new(:title => "Foo"), BlogPost.new(:title => "Bar")]
# BlogPost.import posts, :synchronize => posts
# puts posts.first.new_record? # => false
# BlogPost.import posts, :synchronize => posts, :synchronize_keys => [:title]
# puts posts.first.persisted? # => true
#
# == On Duplicate Key Update (MySQL only)
#