Sha256: c65b5c729fe95d80ff7aaa519b92846179c8ad00bc1865586ec0b56e3c6c2077

Contents?: true

Size: 327 Bytes

Versions: 8

Compression:

Stored size: 327 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

8 entries across 8 versions & 1 rubygems

Version Path
foreman_openscap-0.7.1 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.6.7 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.7.0 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.6.6 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.6.5 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.6.4 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.6.3 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.6.2 app/controllers/policy_dashboard_controller.rb