Measurements#new form improvements

This commit is contained in:
2025-05-13 22:30:58 +02:00
parent ef3484dfdf
commit e12369cea1
8 changed files with 50 additions and 34 deletions

View File

@@ -165,6 +165,6 @@ class Quantity < ApplicationRecord
end
def relative_pathname(ancestor)
pathname.delete_prefix(ancestor&.pathname || '')
pathname.delete_prefix(ancestor ? ancestor.pathname + PATHNAME_DELIMITER : '')
end
end