lib/lite/validators/csv_validator.rb in lite-validators-1.1.1 vs lib/lite/validators/csv_validator.rb in lite-validators-1.1.2
- old
+ new
@@ -2,10 +2,10 @@
require 'csv'
class CsvValidator < FileSizeValidator
- DIMENSIONS ||= %i[
+ DIMENSIONS = %i[
columns rows
].freeze
def validate_each(record, attribute, value)
assert_valid_dimensions!