Remove new? guard on path existence
This commit is contained in:
parent
3ce9248518
commit
c324246186
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue