lint this, check todo
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 20s
CI / test (push) Successful in 33s

This commit is contained in:
2026-01-30 01:47:41 +01:00
parent 21e7e65dfb
commit 7c7bdf7e65
6 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class Admin::RequestsController < Admin::BaseController
@entry = Entry.find(params[:id])
@user = @entry.requested_by
entry_preview = [@entry.fi, @entry.en, @entry.sv, @entry.no, @entry.ru, @entry.de].compact.first || "Entry"
entry_preview = [ @entry.fi, @entry.en, @entry.sv, @entry.no, @entry.ru, @entry.de ].compact.first || "Entry"
@entry.destroy!
@user.destroy! if @user.requested_entries.count.zero?