5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-17 09:40:48 +00:00

fixup! fix: instalar las gemas cuando sea necesario #12755

This commit is contained in:
f 2023-03-31 10:56:09 -03:00
parent 6b759c92ce
commit 0744e124e3

View file

@ -575,11 +575,11 @@ class Site < ApplicationRecord
# Detecta si el Gemfile fue modificado
def gemfile_updated?
updated_at > File.mtime(File.join(path, 'Gemfile'))
updated_at < File.mtime(File.join(path, 'Gemfile'))
end
# Detecta si el Gemfile.lock fue modificado
def gemfile_lock_updated?
updated_at > File.mtime(File.join(path, 'Gemfile.lock'))
updated_at < File.mtime(File.join(path, 'Gemfile.lock'))
end
end