Class: ContentEmbedding::ActivityEmbedding
- Inherits:
-
ContentEmbedding
- Object
- ContentEmbedding
- ContentEmbedding::ActivityEmbedding
- Includes:
- TextSearchable
- Defined in:
- app/models/content_embedding/activity_embedding.rb
Overview
ContentEmbedding STI subclass for activity embeddings.
Constant Summary
Constants included from TextSearchable
TextSearchable::SIMILARITY_THRESHOLD
Belongs to collapse
- #embeddable ⇒ Activity (also: #activity)
Class Method Summary collapse
-
.primary_content ⇒ ActiveRecord::Relation<ContentEmbedding::ActivityEmbedding>
A relation of ContentEmbedding::ActivityEmbeddings 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::ActivityEmbedding>
A relation of ContentEmbedding::ActivityEmbeddings that are primary content. Active Record Scope
51 |
# File 'app/models/content_embedding/activity_embedding.rb', line 51 scope :primary_content, -> { where(content_type: 'primary') } |
Instance Method Details
#embeddable ⇒ Activity Also known as: activity
46 |
# File 'app/models/content_embedding/activity_embedding.rb', line 46 belongs_to :embeddable, class_name: 'Activity' |