diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-01-28 14:25:55 -0800 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-01-28 14:25:55 -0800 |
commit | 68f7302474768351abf12767c7741823f56f35cd (patch) | |
tree | 192d424c9d2b41e87353f059e87c56c81006ffd3 /app/models/service.rb | |
parent | c6c7552e41cba12ca84238bd466d522aa1712220 (diff) | |
download | gitlab-ce-68f7302474768351abf12767c7741823f56f35cd.tar.gz |
Add a scope for visible services, code styling changes for easier readability.
Diffstat (limited to 'app/models/service.rb')
-rw-r--r-- | app/models/service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/service.rb b/app/models/service.rb index 42419475349..15948e63e41 100644 --- a/app/models/service.rb +++ b/app/models/service.rb @@ -26,6 +26,8 @@ class Service < ActiveRecord::Base validates :project_id, presence: true + scope :visible, -> { where.not(type: 'GitlabIssueTrackerService') } + def activated? active end |