Skip to content

Commit fa1d6fd

Browse files
committed
Remove cover image method from images module
1 parent 807fe15 commit fa1d6fd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

app/models/concerns/better_together/categorizable.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ def with_cover_images
2828
end
2929
end
3030

31-
def cover_image
32-
super() if respond_to?(:cover_image) && super().attached?
33-
34-
categories.with_cover_images.first.cover_image if respond_to?(:categories) && categories.with_cover_images.any?
35-
end
36-
3731
def extra_permitted_attributes
3832
super + extra_category_permitted_attributes
3933
end

0 commit comments

Comments
 (0)