Remove new? guard on path existence

This commit is contained in:
0x1eef 2024-04-26 16:31:18 -03:00
parent 3ce9248518
commit c324246186

View file

@ -12,7 +12,7 @@ class Twenty::Project < Sequel::Model
# @api private
def validate
super
errors.add(:path, "does not exist on disk") if new? && !path_exist?
errors.add(:path, "does not exist on disk") if !path_exist?
end
##