Sha256: 2c91991927d00ea9da547b849b11585c8adc3ef90db1857929bfde7ae49fea13

Contents?: true

Size: 558 Bytes

Versions: 15

Compression:

Stored size: 558 Bytes

Contents

module ForemanOpenscap
  module HostgroupsControllerExtensions
    extend ActiveSupport::Concern

    included do
      alias_method_chain :load_vars_for_ajax, :openscap
      alias_method_chain :inherit_parent_attributes, :openscap
    end

    def load_vars_for_ajax_with_openscap
      load_vars_for_ajax_without_openscap
      @openscap_proxy = @hostgroup.openscap_proxy
    end

    def inherit_parent_attributes_with_openscap
      inherit_parent_attributes_without_openscap
      @hostgroup.openscap_proxy ||= @parent.openscap_proxy
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
foreman_openscap-0.7.2 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.7.1 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.6.7 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.7.0 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.6.6 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.6.5 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.6.4 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.6.3 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.6.2 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.6.1 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.6.0 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.5.4 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.5.3 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.5.2 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb
foreman_openscap-0.5.1 app/controllers/concerns/foreman_openscap/hostgroups_controller_extensions.rb