Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-03 11:52:14 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-03 11:52:14 +0400
commitd6036f08aa94fa5a45b569fc8b9e80f064496bcf (patch)
treea1ae3e66044c83116cf8d2dd7d860590b20f7613 /app/models/service.rb
parentce84e3f440e5f737ca808fd88cf54caefeda6b81 (diff)
move activated? method to service
Diffstat (limited to 'app/models/service.rb')
-rw-r--r--app/models/service.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/service.rb b/app/models/service.rb
index 17a7a656de5..d3486d29200 100644
--- a/app/models/service.rb
+++ b/app/models/service.rb
@@ -20,4 +20,8 @@ class Service < ActiveRecord::Base
has_one :service_hook
validates :project_id, presence: true
+
+ def activated?
+ active
+ end
end