Skip to content

Commit

Permalink
Fix example in doc comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
dougo authored and zdennis committed Dec 14, 2012
1 parent 9fd19a3 commit d0c1055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/activerecord-import/import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
#
Expand Down

0 comments on commit d0c1055

Please sign in to comment.