Class: Noventius::ReportsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/noventius/reports_controller.rb

Constant Summary

Constants included from FilterParams

FilterParams::SCOPE_KEY

Instance Method Summary collapse

Methods inherited from ApplicationController

#reports

Methods included from FilterParams

#filter_params, included

Instance Method Details

#indexObject



10
11
12
# File 'app/controllers/noventius/reports_controller.rb', line 10

def index
  reports
end

#nestedObject



21
22
23
24
25
# File 'app/controllers/noventius/reports_controller.rb', line 21

def nested
  respond_to do |format|
    format.html { render layout: false }
  end
end

#showObject



14
15
16
17
18
19
# File 'app/controllers/noventius/reports_controller.rb', line 14

def show
  respond_to do |format|
    format.html
    format.csv { render text: @report.to(:csv) }
  end
end