Sha256: 3fcac114960aa7b83dd8491c3766fb1637032aa5405c7662517f3ac665feb12c
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
module Dradis::Plugins::Projects class TemplatesController < Dradis::Plugins::Export::BaseController skip_before_action :validate_scope def show # this allows us to have different exporters in different editions exporter_class = Rails.application.config.dradis.projects.template_exporter options = export_params.merge( plugin: Dradis::Plugins::Projects, scope: :all ) exporter = exporter_class.new(options) template = exporter.export send_data(template, filename: 'dradis-template.xml', type: :xml) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dradis-projects-4.9.0 | app/controllers/dradis/plugins/projects/templates_controller.rb |
dradis-projects-4.8.0 | app/controllers/dradis/plugins/projects/templates_controller.rb |