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