We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6d18e9 + f0c58c0 commit f520d6aCopy full SHA for f520d6a
lib/csv_importer/row.rb
@@ -63,7 +63,7 @@ def set_attribute(model, column, csv_value)
63
when 3 # to: ->(field_value, post, column) { post.hash_field[column.name] = field_value }
64
to_proc.call(csv_value, model, column)
65
else
66
- raise ArgumentError, "`to` proc can only have 1 or 2 arguments"
+ raise ArgumentError, "`to` proc can only have 1, 2 or 3 arguments"
67
end
68
69
attribute = column_definition.attribute
0 commit comments