Fix typos
This commit is contained in:
parent
15565d2cbe
commit
7425ee18cf
2 changed files with 2 additions and 2 deletions
|
@ -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!
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in a new issue