app/models/katello/generic_content_unit.rb in katello-4.2.0.1 vs app/models/katello/generic_content_unit.rb in katello-4.2.1

- old
+ new

@@ -1,10 +1,13 @@ module Katello class GenericContentUnit < Katello::Model self.table_name = 'katello_generic_content_units' include Concerns::PulpDatabaseUnit - CONTENT_TYPE = 'generic_content_unit'.freeze + CONTENT_TYPE = 'generic'.freeze + + scoped_search :on => :name, :complete_value => true + scoped_search :on => :id, :complete_value => true def self.default_sort order(:name) end