Fix example in doc comment.

master
Doug Orleans 2012-09-03 02:40:51 -04:00 committed by Zach Dennis
parent 9fd19a36bd
commit d0c1055b65
1 changed files with 2 additions and 2 deletions

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)
#