lib/csv_importer/row.rb in csv-importer-0.3.1 vs lib/csv_importer/row.rb in csv-importer-0.3.2

- old
+ new

@@ -17,10 +17,13 @@ def model @model ||= begin model = find_or_build_model set_attributes(model) + + after_build_blocks.each { |block| instance_exec(model, &block) } + model end end # A hash with this row's attributes def csv_attributes @@ -40,11 +43,9 @@ column_definition = column.definition next if column_definition.nil? set_attribute(model, column_definition, value) end - - after_build_blocks.each { |block| instance_exec(model, &block) } model end # Set the attribute using the column_definition and the csv_value