diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-08-15 11:25:48 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-08-15 11:25:48 +0400 |
commit | 27cf081e1b0b1df1661aaf0ae6b60b05ef3eb8d8 (patch) | |
tree | e666cc1b8c925d8685c5128a58b415aea5e7ab81 /app/models/label.rb | |
parent | 014eff5d8f0081820f3f7a9ac905ab894e101dd7 (diff) | |
parent | cf3ba0209dc7dc8b9ac93d574a8f6296b858be40 (diff) |
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.rb | 4 |
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 |