Sha256: e028c9cf4048da1c047df2ea872ea9f772834195cea10cb235aa719bad37d2fc
Contents?: true
Size: 470 Bytes
Versions: 16
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true module Decidim module Verifications module CsvCensus module Admin # A form to temporaly upload csv census data class CensusDataForm < Form mimic :census_data attribute :file def data CsvCensus::Data.new(file.path) rescue CSV::MalformedCSVError errors.add(:file, :malformed) nil end end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems