diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-01-24 00:05:25 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-01-24 00:06:13 +0100 |
commit | 14650f701b68cc888c1f5b199949e894bc4a27c9 (patch) | |
tree | b8d960bf7ece878c5b2d480cd6c735edc7e3ff1e | |
parent | 3540fb595542b690806d83412f93e2e651c029d4 (diff) | |
download | gitlab-ci-14650f701b68cc888c1f5b199949e894bc4a27c9.tar.gz |
Fixed Slack notifications
-rw-r--r-- | app/models/project_services/slack_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/slack_service.rb b/app/models/project_services/slack_service.rb index e187a9f..44f0cd4 100644 --- a/app/models/project_services/slack_service.rb +++ b/app/models/project_services/slack_service.rb @@ -50,7 +50,7 @@ class SlackService < Service def can_test? # slack notification is useful only for builds either successful or failed - project.commits.order(id: desc).any? do |commit| + project.commits.order(id: :desc).any? do |commit| case commit.status.to_sym when :failed true |