Sha256: b711728c4a4b19e86a5682cb79cc653b3842e8406dadaac37045af62621a2eea

Contents?: true

Size: 473 Bytes

Versions: 7

Compression:

Stored size: 473 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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-core-0.18.1 app/uploaders/decidim/open_data_uploader.rb
decidim-core-0.17.2 app/uploaders/decidim/open_data_uploader.rb
decidim-core-0.18.0 app/uploaders/decidim/open_data_uploader.rb
decidim-core-0.17.1 app/uploaders/decidim/open_data_uploader.rb
decidim-core-0.16.1 app/uploaders/decidim/open_data_uploader.rb
decidim-core-0.17.0 app/uploaders/decidim/open_data_uploader.rb
decidim-core-0.16.0 app/uploaders/decidim/open_data_uploader.rb