lib/seed-fu/writer.rb in seed-fu-2.1.0 vs lib/seed-fu/writer.rb in seed-fu-2.2.0

- old
+ new

@@ -3,11 +3,11 @@ # a script which converts data in a CSV file to a valid Seed Fu seed file, which can then be # imported. # # @example Basic usage # SeedFu::Writer.write('path/to/file.rb', :class_name => 'Person', :constraints => [:first_name, :last_name]) do |writer| - # writer.write(:first_name => 'Jon', :last_name => 'Smith', :age => 21) - # writer.write(:first_name => 'Emily', :last_name => 'McDonald', :age => 24) + # writer.add(:first_name => 'Jon', :last_name => 'Smith', :age => 21) + # writer.add(:first_name => 'Emily', :last_name => 'McDonald', :age => 24) # end # # # Writes the following to the file: # # # # Person.seed(:first_name, :last_name,