diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-05 17:24:07 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-05 17:24:07 +0100 |
commit | 8f557206d8e6dacdbbeb9862ea9cc0a3423f458f (patch) | |
tree | 45ed24f850a1e09579b5d06085498d89f8ee25fc /app/models/ci/runner.rb | |
parent | aa60c7a2b521d8a30f10fcb31beb0cdd39c5cbbc (diff) | |
download | gitlab-ce-8f557206d8e6dacdbbeb9862ea9cc0a3423f458f.tar.gz |
Save runner attributes only if there's changes
Diffstat (limited to 'app/models/ci/runner.rb')
-rw-r--r-- | app/models/ci/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index f6db71be438..13c784bea0d 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -164,7 +164,7 @@ module Ci if persist_cached_data? self.assign_attributes(values) - self.save + self.save if self.changed? end end |