diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-23 11:40:57 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-23 11:45:45 +0200 |
commit | 127836dd541ce0ecd4976d002d97b3e9e57f4947 (patch) | |
tree | 2b45f554466aca0419ed3bf069abb7bb62c8e4b7 /app/models/commit_status.rb | |
parent | 0e73d7b6af77e2191da2c8fea7232bc8d4a4bbe4 (diff) | |
download | gitlab-ce-127836dd541ce0ecd4976d002d97b3e9e57f4947.tar.gz |
Fix small CI UI regressions
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r-- | app/models/commit_status.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb index 8188ba3a28e..0b73ab6d2eb 100644 --- a/app/models/commit_status.rb +++ b/app/models/commit_status.rb @@ -20,7 +20,6 @@ class CommitStatus < ActiveRecord::Base scope :latest, -> { where(id: unscope(:select).select('max(id)').group(:name, :ref)) } scope :ordered, -> { order(:ref, :stage_idx, :name) } scope :for_ref, ->(ref) { where(ref: ref) } - scope :running_or_pending, -> { where(status: [:running, :pending]) } state_machine :status, initial: :pending do event :run do |