Added condition badge in show and removed in_use
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
2026-05-30 01:45:23 +02:00
parent 5c9e6a34b4
commit fd3149b13f
3 changed files with 29 additions and 15 deletions

View File

@@ -112,9 +112,8 @@ class Item < ApplicationRecord
end
end
# 3. Ermittelt den abstrakten Zustands-Typen für das Badge (Berücksichtigt deinen Umlauf)
def condition_badge_type
(user_id.present? || room_id.present?) ? "in_use" : condition
condition
end
private