Module: ReportHelper
- Defined in:
 - backend/app/lib/reports/report_helper.rb
 
Constant Summary
- ALLOWED_REPORT_FORMATS =
 ["json", "csv", "xlsx", "html", "pdf"]
Class Method Summary (collapse)
Class Method Details
+ (Object) allowed_report_formats
      8 9 10  | 
    
      # File 'backend/app/lib/reports/report_helper.rb', line 8 def self.allowed_report_formats ALLOWED_REPORT_FORMATS end  | 
  
+ (Object) report_formats
      13 14 15 16 17 18 19  | 
    
      # File 'backend/app/lib/reports/report_helper.rb', line 13 def self.report_formats ["format", String, "The format to render the report (one of: #{ALLOWED_REPORT_FORMATS.join(", ")})", :validation => ["Must be one of #{ALLOWED_REPORT_FORMATS.join(", ")}", ->(v){ ALLOWED_REPORT_FORMATS.include?(v) }]] end  |