Class: GenerateReportController
- Inherits:
-
Object
- Object
- GenerateReportController
- Defined in:
- app/controllers/generate_report_controller.rb
Instance Method Summary collapse
- #get_pr_filters ⇒ Object
- #get_pr_report_class ⇒ Object
- #get_pr_report_data ⇒ Object
- #get_pr_report_params ⇒ Object
Instance Method Details
#get_pr_filters ⇒ Object
20 21 22 23 |
# File 'app/controllers/generate_report_controller.rb', line 20 def get_pr_filters @report_template = ReportTemplate.find(params["report_template_id"]) get_ac_filters_applied(params, @report_template.ac_filter_def) end |
#get_pr_report_class ⇒ Object
6 7 8 9 |
# File 'app/controllers/generate_report_controller.rb', line 6 def get_pr_report_class @report_template = ReportTemplate.find(params["report_template_id"]) Kernel.const_get(@report_template.report_class) end |
#get_pr_report_data ⇒ Object
13 14 15 16 17 18 |
# File 'app/controllers/generate_report_controller.rb', line 13 def get_pr_report_data @report_template = ReportTemplate.find(params["report_template_id"]) mc=Kernel @report_template.ac_filter_def.model_class.split('::').each {|c| mc=mc.const_get(c)} mc.apply_ac_filter(parse_ac_filters(params), get_system_criteria) end |
#get_pr_report_params ⇒ Object
11 |
# File 'app/controllers/generate_report_controller.rb', line 11 def get_pr_report_params; end |