Class: FeaturedPost
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- FeaturedPost
- Includes:
- NestedPriority
- Defined in:
- app/models/featured_post.rb
Overview
Featured post
Attributes:
created_at [DateTime]
language_id [Language]
post_id [Post]
priority [Integer]
updated_at [DateTime]
Class Method Summary collapse
Class Method Details
.siblings(entity) ⇒ Object
22 23 24 |
# File 'app/models/featured_post.rb', line 22 def self.siblings(entity) where(language_id: entity.language_id) end |