Rails.root.join devuelve Pathname, no String

This commit is contained in:
f 2021-05-26 16:42:34 -03:00
parent 908a0a90a8
commit 134535cb1c

View file

@ -161,12 +161,12 @@ class Site
# @return [String] # @return [String]
def public_key def public_key
@public_key ||= Rails.root.join('.ssh', 'id_ed25519.pub') @public_key ||= Rails.root.join('.ssh', 'id_ed25519.pub').to_s
end end
# @return [String] # @return [String]
def private_key def private_key
@private_key ||= Rails.root.join('.ssh', 'id_ed25519') @private_key ||= Rails.root.join('.ssh', 'id_ed25519').to_s
end end
def relativize(file) def relativize(file)