Class: Decidim::Admin::ImportExampleForm

Inherits:
Form
  • Object
show all
Defined in:
app/forms/decidim/admin/import_example_form.rb

Instance Method Summary collapse

Instance Method Details

#available_formatsObject



19
20
21
# File 'app/forms/decidim/admin/import_example_form.rb', line 19

def available_formats
  Decidim::Admin::Import::Readers::ACCEPTED_MIME_TYPES
end

#exampleObject



15
16
17
# File 'app/forms/decidim/admin/import_example_form.rb', line 15

def example
  reader.example_file(example_data)
end