Sha256: 5c685d9dbb42fb6379a57691070f50f80d34005c82b8548bc8f9e7c2b98738df

Contents?: true

Size: 732 Bytes

Versions: 7

Compression:

Stored size: 732 Bytes

Contents

#
# Copyright (c) 2014 Red Hat Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 3 (GPLv3). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv3
# along with this software; if not, see http://www.gnu.org/licenses/gpl.txt
#

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

7 entries across 7 versions & 1 rubygems

Version Path
foreman_openscap-0.6.1 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.6.0 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.5.4 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.5.3 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.5.2 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.5.1 app/controllers/policy_dashboard_controller.rb
foreman_openscap-0.5.0 app/controllers/policy_dashboard_controller.rb