forked from fixin.me/fixin.me
Single select form without action buttons
This commit is contained in:
@@ -100,6 +100,11 @@ class Quantity < ApplicationRecord
|
||||
name
|
||||
end
|
||||
|
||||
def to_s_with_depth
|
||||
# em space, U+2003
|
||||
' ' * depth + name
|
||||
end
|
||||
|
||||
def destroyable?
|
||||
subquantities.empty?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user