Sha256: 35db0bcd417ac19305056258ac4a809154f8eed7b3fafcae8fb00afd5404abfd
Contents?: true
Size: 624 Bytes
Versions: 6
Compression:
Stored size: 624 Bytes
Contents
# frozen_string_literal: true module Decidim # This class deals with uploading open data. class OpenDataUploader < ApplicationUploader protected # Override the directory where uploaded files will be stored. We only want one copy of the Open Data # export. def store_dir default_path = "uploads/open-data" return File.join(Decidim.base_uploads_path, default_path) if Decidim.base_uploads_path.present? default_path end # Sets the validation that the associated model is always within an organization to true def validate_inside_organization true end end end
Version data entries
6 entries across 6 versions & 1 rubygems