Sha256: dc33c61ca1c40e6abe4221430d28b1d6e433007741895dc09b9b596b9378772c

Contents?: true

Size: 530 Bytes

Versions: 8

Compression:

Stored size: 530 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, nil, 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

8 entries across 8 versions & 1 rubygems

Version Path
foreman_puppet-1.0.5 app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb
foreman_puppet-1.0.4 app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb
foreman_puppet-1.0.3 app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb
foreman_puppet-1.0.2 app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb
foreman_puppet-1.0.1 app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb
foreman_puppet-1.0.0 app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb
foreman_puppet-1.0.0.rc.2 app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb
foreman_puppet-1.0.0.rc.1 app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb