Sha256: 7cae4064b6bbae75e153ba7f393436419b9095d4e9068e9744152eb9b9cf7ec9
Contents?: true
Size: 730 Bytes
Versions: 13
Compression:
Stored size: 730 Bytes
Contents
module Krikri ## # Handles HTTP requests for the Reports dashboard, presenting all types of # reports, filtered by {Krikri::Provider} if given. class ReportsController < ApplicationController layout 'krikri/application' ## # Renders the index view, giving `@validation_reports` and `@qa_reports` # for the specified provider. def index @current_provider = params[:provider] report = Krikri::ValidationReport.new report.provider_id = @current_provider @validation_reports = report.all if @current_provider @qa_reports = Array(Krikri::QAReport.find_by(provider: @current_provider)) else @qa_reports = Krikri::QAReport.all end end end end
Version data entries
13 entries across 13 versions & 1 rubygems