summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-12 12:15:48 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-12 12:16:55 +0200
commit7ef156a24292f98d89bc424cc245f00548831863 (patch)
tree304513ad3f2468fbed91943fac2cdeb2ef594f90 /app
parent887494761ee41e8e647753e597fab534ed738058 (diff)
downloadgitlab-ce-7ef156a24292f98d89bc424cc245f00548831863.tar.gz
Add author to statuses
Diffstat (limited to 'app')
-rw-r--r--app/models/commit_status.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index 4c6de18527b..de7b29a649d 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -9,6 +9,8 @@ class CommitStatus < ActiveRecord::Base
validates_presence_of :name
+ alias_attribute :author, :user
+
scope :running, ->() { where(status: 'running') }
scope :pending, ->() { where(status: 'pending') }
scope :success, ->() { where(status: 'success') }