Class: FeaturedPost

Inherits:
ApplicationRecord show all
Includes:
NestedPriority
Defined in:
app/models/featured_post.rb

Overview

Featured post

Constant Summary collapse

PRIORITY_RANGE =
(1..100).freeze

Class Method Summary collapse

Class Method Details

.siblings(entity) ⇒ Object



17
18
19
# File 'app/models/featured_post.rb', line 17

def self.siblings(entity)
  where(language_id: entity.language_id)
end