move activated? method to service

This commit is contained in:
Dmitriy Zaporozhets 2013-01-03 09:52:14 +02:00
parent ce84e3f440
commit d6036f08aa
3 changed files with 8 additions and 4 deletions

View file

@ -20,4 +20,8 @@ class Service < ActiveRecord::Base
has_one :service_hook
validates :project_id, presence: true
def activated?
active
end
end