Sha256: 76e55831c2ef619b4a6904d48d05f4ff5186e59e7c345dbc0162b134f5fff1df

Contents?: true

Size: 732 Bytes

Versions: 9

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 ScaptimonyPolicyDashboardController < ApplicationController
  before_filter :prefetch_data, :only => :index

  def index; end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
foreman_openscap-0.4.3 app/controllers/scaptimony_policy_dashboard_controller.rb
foreman_openscap-0.4.2 app/controllers/scaptimony_policy_dashboard_controller.rb
foreman_openscap-0.4.1 app/controllers/scaptimony_policy_dashboard_controller.rb
foreman_openscap-0.3.4 app/controllers/scaptimony_policy_dashboard_controller.rb
foreman_openscap-0.4.0 app/controllers/scaptimony_policy_dashboard_controller.rb
foreman_openscap-0.3.3 app/controllers/scaptimony_policy_dashboard_controller.rb
foreman_openscap-0.3.2 app/controllers/scaptimony_policy_dashboard_controller.rb
foreman_openscap-0.3.1 app/controllers/scaptimony_policy_dashboard_controller.rb
foreman_openscap-0.3.0 app/controllers/scaptimony_policy_dashboard_controller.rb