Skip to content

Commit 7d74507

Browse files
Include Featureable to Episode Logo Podcast Video
1 parent 0ecae22 commit 7d74507

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

app/models/concerns/featureable.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module Featureable
22
extend ActiveSupport::Concern
33

4-
# TEMP: re-enable and expand coverage to include Journal, Issue, et al
54
included do
65
scope :featured, -> { where.not(featured_at: nil) }
76
before_save :update_featured_at

app/models/episode.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class Episode < ApplicationRecord
22
include Name
3+
include Featureable
34
include Publishable
45

56
belongs_to :podcast

app/models/logo.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
class Logo < ApplicationRecord
22
include Tool
3+
include Featureable
4+
35
has_one_attached :image_jpg, dependent: :destroy
46
has_one_attached :image_png, dependent: :destroy
57
has_one_attached :image_pdf, dependent: :destroy

app/models/podcast.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class Podcast < ApplicationRecord
22
include Name
3+
include Featureable
34

45
has_many :episodes, dependent: :destroy
56

app/models/video.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class Video < ApplicationRecord
22
include Tool
3+
include Featureable
34

45
has_one_attached :image_poster_frame
56

0 commit comments

Comments
 (0)