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
|
||||
|
||||
def run_command(options)
|
||||
path = File.reapath(options.path ? options.path : Dir.getwd)
|
||||
path = File.realpath(options.path ? options.path : Dir.getwd)
|
||||
Twenty::Project
|
||||
.where(path:)
|
||||
.first!
|
||||
|
|
|
@ -13,7 +13,7 @@ class Twenty::Project < Sequel::Model
|
|||
def validate
|
||||
super
|
||||
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
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue