Fix typos

This commit is contained in:
0x1eef 2024-04-26 21:15:40 -03:00
parent 15565d2cbe
commit 7425ee18cf
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ class Twenty::Command::Disconnect < Twenty::Command
private private
def run_command(options) def run_command(options)
path = File.reapath(options.path ? options.path : Dir.getwd) path = File.realpath(options.path ? options.path : Dir.getwd)
Twenty::Project Twenty::Project
.where(path:) .where(path:)
.first! .first!

View file

@ -13,7 +13,7 @@ class Twenty::Project < Sequel::Model
def validate def validate
super super
errors.add(:path, "does not exist on disk") if !path_exist? errors.add(:path, "does not exist on disk") if !path_exist?
errors.add(:path, "is not absolute") if !File.absolute_path?(path) errors.add(:path, "is not absolute") if !File.absolute_path?(self[:path])
end end
## ##