Sha256: 58ff1d093231bcd0a7a90d5f530872065bf253a2d9a6786bc08f00b8c274e3af
Contents?: true
Size: 323 Bytes
Versions: 1
Compression:
Stored size: 323 Bytes
Contents
# frozen_string_literal: true module MrCommon module Registrations class ExportController < BaseController def index send_data( Registration.as_csv(format_rules: Registration.try(:csv_format_rules)), filename: "Registrations-#{Date.today}.csv" ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mr_common-1.3.0 | app/controllers/mr_common/registrations/export_controller.rb |