Update to Rails 7.2

This commit is contained in:
Christoph Haas 2025-02-25 21:57:16 +01:00
parent 932a43daac
commit 25672aabb0
31 changed files with 836 additions and 435 deletions

View file

@ -8,6 +8,7 @@ class Screenshot < ApplicationRecord
default_scope { order(approved: :asc, hidden: :asc, created_at: :desc) }
scope :approved, -> { where(approved: true) }
scope :visible, -> { where(hidden: false) }
# Shrine
include ImageUploader::Attachment(:simage) # adds an `simage` virtual attribute