Sha256: f4ae9726a8b3eec22e35421f38137dad6d6eea5bbca3c139142714b5bb2d4ed8

Contents?: true

Size: 308 Bytes

Versions: 13

Compression:

Stored size: 308 Bytes

Contents

class SiteController < ApplicationController
  def report
    @report = PostReport.new(params.fetch(:post_report, {}))
    @csv = ActiveReporter::Serializer::Csv.new(@report)

    respond_to do |format|
      format.html
      format.csv { send_data(csv.csv_text, filename: csv.filename) }
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
active_reporter-0.7.1 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.6.5 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.6.4 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.6.3 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.6.2 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.6.1 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.6.0 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.5.13 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.5.12 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.5.11 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.5.10 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.5.9 spec/dummy/app/controllers/site_controller.rb
active_reporter-0.5.8 spec/dummy/app/controllers/site_controller.rb