Sha256: a15a58dced4db8c6b2fcaad322c02e1d4a51c2c7dea33a4d48377ad50ac64c37

Contents?: true

Size: 328 Bytes

Versions: 19

Compression:

Stored size: 328 Bytes

Contents

class PolicyDashboardController < ApplicationController
  before_filter :prefetch_data, :only => :index

  def index
  end

  def prefetch_data
    @policy = ::ForemanOpenscap::Policy.find(params[:id])
    dashboard = ForemanOpenscap::PolicyDashboard::Data.new(@policy, params[:search])
    @report = dashboard.report
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
foreman_openscap-0.7.13 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.8.6 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.8.5 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.12 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.8.4 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.11 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.10 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.8.3 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.9 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.8 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.7 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.8.2 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.6 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.8.1 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.5 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.8.0 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.4 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.3 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.2 app/controllers/policy_dashboard_controller.rb