Sha256: dae31626a87089232b26149e3ae5d84c4c797b4464bb74d0fbbbc91d6f749255
Contents?: true
Size: 461 Bytes
Versions: 226
Compression:
Stored size: 461 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
226 entries across 226 versions & 1 rubygems