Sha256: 2a78c2b84ce0a27f405433f1f665a5b9a5091371f8218e7ee346940896f58b98

Contents?: true

Size: 241 Bytes

Versions: 8

Compression:

Stored size: 241 Bytes

Contents

# frozen_string_literal: true

module MrCommon
  module Registrations
    class ExportController < BaseController
      def index
        send_data Registration.as_csv, filename: "Registrations-#{Date.today}.csv"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mr_common-1.2.0 app/controllers/mr_common/registrations/export_controller.rb
mr_common-1.1.0 app/controllers/mr_common/registrations/export_controller.rb
mr_common-1.0.5 app/controllers/mr_common/registrations/export_controller.rb
mr_common-1.0.4 app/controllers/mr_common/registrations/export_controller.rb
mr_common-1.0.3 app/controllers/mr_common/registrations/export_controller.rb
mr_common-1.0.2 app/controllers/mr_common/registrations/export_controller.rb
mr_common-1.0.1 app/controllers/mr_common/registrations/export_controller.rb
mr_common-1.0.0 app/controllers/mr_common/registrations/export_controller.rb