diff options
| author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-17 09:32:49 -0400 |
|---|---|---|
| committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-17 09:32:49 -0400 |
| commit | 433ca7390d800a2fda3e3c5eb29272d0ba2d9df6 (patch) | |
| tree | d0c815f3019582543d8be3e421258a4401db57ec /app/models | |
| parent | 1c5b172abb1279a25731d35ee913daa91738606d (diff) | |
| download | gitlab-ce-433ca7390d800a2fda3e3c5eb29272d0ba2d9df6.tar.gz | |
Make some logic less twistable
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/concerns/statuseable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/statuseable.rb b/app/models/concerns/statuseable.rb index 7b0c9789fb9..8a293b7b76e 100644 --- a/app/models/concerns/statuseable.rb +++ b/app/models/concerns/statuseable.rb @@ -7,7 +7,7 @@ module Statuseable def status_sql builds = all.select('count(*)').to_sql success = all.success.select('count(*)').to_sql - ignored = all.ignored.select('count(*)').to_sql if all.try(:ignored) + ignored = all.ignored.select('count(*)').to_sql if all.respond_to?(:ignored) ignored ||= '0' pending = all.pending.select('count(*)').to_sql running = all.running.select('count(*)').to_sql |
