diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-05-07 12:52:53 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-05-07 13:00:14 +0300 |
commit | d12a29911771e794202ffc9d9ab64fddacfbd485 (patch) | |
tree | 91bc3f70236acb4161e1ed30fcc407b4244f940d /app/models/remote_mirror.rb | |
parent | 961255b107370a1350f91d0835cf0e849d237f7d (diff) |
Adds changelog entry, changes RemoteMirror#sync? to be semantically sound and remove reference to pull mirrors in view
Diffstat (limited to 'app/models/remote_mirror.rb')
-rw-r--r-- | app/models/remote_mirror.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/remote_mirror.rb b/app/models/remote_mirror.rb index 3b9fd6d710f..bbf8fd9c6a7 100644 --- a/app/models/remote_mirror.rb +++ b/app/models/remote_mirror.rb @@ -87,11 +87,11 @@ class RemoteMirror < ActiveRecord::Base end def sync? - !enabled? + enabled? end def sync - return if sync? + return unless sync? if recently_scheduled? RepositoryUpdateRemoteMirrorWorker.perform_in(backoff_delay, self.id, Time.now) |