Sha256: a4d2fab3c928723e5e1099919004d3a31274309cdf4c8fb92bbe04924de035ce
Contents?: true
Size: 906 Bytes
Versions: 2
Compression:
Stored size: 906 Bytes
Contents
module Katello module Glue::ElasticSearch::ContentViewHistory extend ActiveSupport::Concern included do include Ext::IndexedModel index_options :extended_json => :extended_index_attrs, :json => {:only => [:user, :id, :created_at, :updated_at]} mapping do indexes :version_id, :type => 'integer' indexes :created_at, :type => 'date' indexes :environment, :type => 'string' indexes :content_view_id, :type => 'integer' indexes :version, :type => 'float' indexes :user, :type => 'string' end end def extended_index_attrs { :environment => self.environment.try(:name), :version_id => self.version.id, :version => self.version.version, :content_view_id => self.content_view.id, :environment_id => self.katello_environment_id } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
katello-2.4.0.rc2 | app/models/katello/glue/elastic_search/content_view_history.rb |
katello-2.4.0.rc1 | app/models/katello/glue/elastic_search/content_view_history.rb |