Display Unit name using #to_s

This commit is contained in:
2024-11-23 02:24:08 +01:00
parent bdc4ec4644
commit 76ce2eeedd
5 changed files with 8 additions and 4 deletions

View File

@@ -78,6 +78,10 @@ class Unit < ApplicationRecord
nil
end
def to_s
symbol
end
def movable?
subunits.empty?
end