Class: Compendium::ReportsController

Inherits:
ApplicationController
  • Object
show all
Includes:
ReportsHelper
Defined in:
app/controllers/compendium/reports_controller.rb

Instance Method Summary collapse

Methods included from ReportsHelper

#expose, #render_if_exists, #render_report_setup

Instance Method Details

#runObject



14
15
16
17
# File 'app/controllers/compendium/reports_controller.rb', line 14

def run
  template = template_exists?(@prefix, get_template_prefixes) ? @prefix : 'run'
  render action: template, locals: { report: @report }
end

#setupObject



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

def setup
  render_setup
end