summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-05-08 12:23:07 +0200
committerMatija Čupić <matteeyah@gmail.com>2018-05-08 12:23:23 +0200
commit71be7a1c224813e627c9d258a32189f1949338ff (patch)
tree15a7e0737eb09e813ce2a3598a82ed1597529ed6 /app/models
parent7be65f5d8fd7789b6f630ea04b7bcec8847ab436 (diff)
downloadgitlab-ce-71be7a1c224813e627c9d258a32189f1949338ff.tar.gz
Move Runner#contacted_at to RedisCacheable#cached_attr_time_reader
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/runner.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb
index 23078f1c3ed..ce3e595a2e1 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -74,7 +74,8 @@ module Ci
project_type: 3
}
- cached_attr_reader :version, :revision, :platform, :architecture, :contacted_at, :ip_address
+ cached_attr_reader :version, :revision, :platform, :architecture, :ip_address
+ cached_attr_time_reader :contacted_at
chronic_duration_attr :maximum_timeout_human_readable, :maximum_timeout