Sha256: c7af8e776b2b4fee50e9c1ef2405b58492f1e2c4362198b9244e3ecb81cf864d

Contents?: true

Size: 560 Bytes

Versions: 38

Compression:

Stored size: 560 Bytes

Contents

module Katello
  class Api::V2::PuppetModulesController < Api::V2::ApiController
    apipie_concern_subst(:a_resource => N_("a puppet module"), :resource => "puppet_modules")
    include Katello::Concerns::Api::V2::RepositoryContentController

    def custom_index_relation(collection)
      if @environment && !@environment.library?
        collection = collection.joins(:content_view_puppet_environments).
            where("#{Katello::ContentViewPuppetEnvironment.table_name}.environment_id" => @environment.id)
      end
      collection
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
katello-3.8.1 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.7.1.1 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.7.1 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.8.0 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.8.0.rc3 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.8.0.rc2 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.7.0 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.8.0.rc1 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.7.0.rc2 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.7.0.rc1 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.5.2 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.6.0 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.6.0.1.rc2 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.6.0.rc2 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.6.0.rc1 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.5.1.1 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.5.1 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.5.0.1 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.5.0 app/controllers/katello/api/v2/puppet_modules_controller.rb
katello-3.5.0.rc2 app/controllers/katello/api/v2/puppet_modules_controller.rb