Sha256: 24aa836f588c6cb6191fbf5ce606d5f3ec8e4f20d025402217e6ec17a90448a9

Contents?: true

Size: 459 Bytes

Versions: 22

Compression:

Stored size: 459 Bytes

Contents

module Katello
  class AutoCompleteSearchController < Katello::ApplicationController
    include Foreman::Controller::AutoCompleteSearch

    def model_of_controller
      Organization.current ? model.where(:organization_id => Organization.current.id) : model
    end

    def model
      Katello::Util::Model.controller_path_to_model("katello/#{params[:kt_path]}")
    end

    def permission_controller
      "katello/#{params[:kt_path]}"
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
katello-3.1.0.1 app/controllers/katello/auto_complete_search_controller.rb
katello-3.1.0 app/controllers/katello/auto_complete_search_controller.rb
katello-3.1.0.rc2.1 app/controllers/katello/auto_complete_search_controller.rb
katello-3.0.2 app/controllers/katello/auto_complete_search_controller.rb
katello-2.4.5 app/controllers/katello/auto_complete_search_controller.rb
katello-3.1.0.rc1 app/controllers/katello/auto_complete_search_controller.rb
katello-3.0.1 app/controllers/katello/auto_complete_search_controller.rb
katello-2.4.4 app/controllers/katello/auto_complete_search_controller.rb
katello-3.0.0 app/controllers/katello/auto_complete_search_controller.rb
katello-2.4.3 app/controllers/katello/auto_complete_search_controller.rb
katello-3.0.0.rc7 app/controllers/katello/auto_complete_search_controller.rb
katello-3.0.0.rc5 app/controllers/katello/auto_complete_search_controller.rb
katello-2.4.2 app/controllers/katello/auto_complete_search_controller.rb
katello-3.0.0.rc4 app/controllers/katello/auto_complete_search_controller.rb
katello-3.0.0.rc3 app/controllers/katello/auto_complete_search_controller.rb
katello-3.0.0.rc2 app/controllers/katello/auto_complete_search_controller.rb
katello-3.0.0.rc1 app/controllers/katello/auto_complete_search_controller.rb
katello-2.4.1 app/controllers/katello/auto_complete_search_controller.rb
katello-2.4.0 app/controllers/katello/auto_complete_search_controller.rb
katello-2.4.0.rc3 app/controllers/katello/auto_complete_search_controller.rb