lib/seed-fu/seeder.rb in seed-fu-2.0.1 vs lib/seed-fu/seeder.rb in seed-fu-2.1.0

- old
+ new

@@ -62,10 +62,10 @@ record = find_or_initialize_record(data) return if @options[:insert_only] && !record.new_record? puts " - #{@model_class} #{data.inspect}" unless @options[:quiet] - record.send(:attributes=, data, false) + record.assign_attributes(data, :without_protection => true) record.save(:validate => false) || raise(ActiveRecord::RecordNotSaved) record end def find_or_initialize_record(data)