summaryrefslogtreecommitdiff
path: root/app/models/label.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-15 10:25:48 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-15 10:25:48 +0300
commit27cf081e1b0b1df1661aaf0ae6b60b05ef3eb8d8 (patch)
treee666cc1b8c925d8685c5128a58b415aea5e7ab81 /app/models/label.rb
parent014eff5d8f0081820f3f7a9ac905ab894e101dd7 (diff)
parentcf3ba0209dc7dc8b9ac93d574a8f6296b858be40 (diff)
downloadgitlab-ce-27cf081e1b0b1df1661aaf0ae6b60b05ef3eb8d8.tar.gz
Merge pull request #7479 from Razer6/feature/labels_api
Implement complete labels API (create/delete/update)
Diffstat (limited to 'app/models/label.rb')
-rw-r--r--app/models/label.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index c32efc7c47f..819d6cefa41 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -18,9 +18,7 @@ class Label < ActiveRecord::Base
scope :order_by_name, -> { reorder("labels.title ASC") }
- def name
- title
- end
+ alias_attribute :name, :title
def open_issues_count
issues.opened.count