Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix example in doc comment.

  • Loading branch information...
commit d0c1055b656c52b02f67c56c8bab63ac9c2587f0 1 parent 9fd19a3
@dougo dougo authored committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/activerecord-import/import.rb
View
4 lib/activerecord-import/import.rb
@@ -137,8 +137,8 @@ def supports_on_duplicate_key_update?
#
# # 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)
#
Please sign in to comment.
Something went wrong with that request. Please try again.