Sha256: abf112ce91fce1d8c0099293d9ffe3b7ae5b7efeb5b261940acc2e6656d50c82
Contents?: true
Size: 496 Bytes
Versions: 20
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true module Decidim module Votings module Census module Admin # A form to temporaly upload csv census data class DatasetForm < Form mimic :dataset attribute :file, Decidim::Attributes::Blob validates :file, presence: true, file_content_type: { allow: ["text/csv"] } def organization context.current_participatory_space&.organization end end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems