Revision 3ec51c07
Added by Adam Price almost 10 years ago
app/models/katello/glue/elastic_search/content_view_puppet_environment.rb | ||
---|---|---|
module Katello
|
||
module Glue::ElasticSearch::ContentViewPuppetEnvironment
|
||
|
||
module ClassMethods
|
||
def sortable_fields
|
||
%w(name)
|
||
end
|
||
end
|
||
|
||
# TODO: break this up into modules
|
||
# rubocop:disable MethodLength
|
||
def self.included(base)
|
||
base.send :include, Ext::IndexedModel
|
||
base.send :extend, ClassMethods
|
||
|
||
base.class_eval do
|
||
index_options :extended_json => :extended_index_attrs,
|
Also available in: Unified diff
fixes #6573 - foretello should error when sorting by non-sortable field, BZ 1110431