Sha256: c7083047bc8013d33524eef8fb84bafc092587db63cfdda63a7212601479af7a

Contents?: true

Size: 837 Bytes

Versions: 38

Compression:

Stored size: 837 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Exporters
    autoload :Exporter, "decidim/exporters/exporter"
    autoload :JSON, "decidim/exporters/json"
    autoload :CSV, "decidim/exporters/csv"
    autoload :Excel, "decidim/exporters/excel"
    autoload :PDF, "decidim/exporters/pdf"
    autoload :ExportData, "decidim/exporters/export_data"

    # Necessary for the i18n normalizer to locate strings not directly invoked in views:

    # i18n-tasks-use t('decidim.admin.exports.formats.JSON')
    # i18n-tasks-use t('decidim.admin.exports.formats.CSV')
    # i18n-tasks-use t('decidim.admin.exports.formats.Excel')

    # Get the exporter class constant from the format as a string.
    #
    # format - The exporter format as a string. i.e "CSV"
    def self.find_exporter(format)
      const_get(format)
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
decidim-core-0.26.8 lib/decidim/exporters.rb
decidim-core-0.27.4 lib/decidim/exporters.rb
decidim-core-0.27.3 lib/decidim/exporters.rb
decidim-core-0.26.7 lib/decidim/exporters.rb
decidim-core-0.26.5 lib/decidim/exporters.rb
decidim-core-0.27.2 lib/decidim/exporters.rb
decidim-core-0.27.1 lib/decidim/exporters.rb
decidim-core-0.26.4 lib/decidim/exporters.rb
decidim-core-0.27.0 lib/decidim/exporters.rb
decidim-core-0.26.3 lib/decidim/exporters.rb
decidim-core-0.27.0.rc2 lib/decidim/exporters.rb
decidim-core-0.27.0.rc1 lib/decidim/exporters.rb
decidim-core-0.26.2 lib/decidim/exporters.rb
decidim-core-0.26.1 lib/decidim/exporters.rb
decidim-core-0.26.0 lib/decidim/exporters.rb
decidim-core-0.26.0.rc2 lib/decidim/exporters.rb
decidim-core-0.26.0.rc1 lib/decidim/exporters.rb
decidim-core-0.25.2 lib/decidim/exporters.rb
decidim-core-0.25.1 lib/decidim/exporters.rb
decidim-core-0.25.0 lib/decidim/exporters.rb