Class: ContentEmbedding::ProductLineEmbedding
- Inherits:
-
ContentEmbedding
- Object
- ContentEmbedding
- ContentEmbedding::ProductLineEmbedding
- Includes:
- TextSearchable
- Defined in:
- app/models/content_embedding/product_line_embedding.rb
Overview
ContentEmbedding STI subclass for product line embeddings.
Constant Summary
Constants included from TextSearchable
TextSearchable::SIMILARITY_THRESHOLD
Belongs to collapse
- #embeddable ⇒ ProductLine (also: #product_line)
Class Method Summary collapse
-
.primary_content ⇒ ActiveRecord::Relation<ContentEmbedding::ProductLineEmbedding>
A relation of ContentEmbedding::ProductLineEmbeddings that are primary content.
Methods included from TextSearchable
apply_locale_filter, apply_published_filter, generate_text_query_embedding, locale_filtered?, semantic_search
Class Method Details
.primary_content ⇒ ActiveRecord::Relation<ContentEmbedding::ProductLineEmbedding>
A relation of ContentEmbedding::ProductLineEmbeddings that are primary content. Active Record Scope
43 |
# File 'app/models/content_embedding/product_line_embedding.rb', line 43 scope :primary_content, -> { where(content_type: 'primary') } |
Instance Method Details
#embeddable ⇒ ProductLine Also known as: product_line
38 |
# File 'app/models/content_embedding/product_line_embedding.rb', line 38 belongs_to :embeddable, class_name: 'ProductLine' |