Sha256: 0cc8c52489c8fd386ca9f46cf49a4693751fe093399a16938786f92bc5b1da0d

Contents?: true

Size: 533 Bytes

Versions: 3

Compression:

Stored size: 533 Bytes

Contents

module ForemanPuppet
  module Extensions
    module ApiTemplateCombinationsController
      extend ActiveSupport::Concern

      included do
        if ForemanPuppet.extracted_from_core?
          apipie_update_methods(%i[index create show update]) do
            param :environment_id, String, desc: N_('ID of environment')
          end
        end

        prepend PrependedMethods
      end

      module PrependedMethods
        def allowed_nested_id
          super | ['environment_id']
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_puppet-0.1.0 app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb
foreman_puppet-0.0.2 app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb
foreman_puppet-0.0.1 app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb