diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-26 10:41:44 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-26 10:41:44 +0200 |
commit | a355ea6f17ce89897d2c6496b363e5c77f48919b (patch) | |
tree | 2ced2a80dc346552bd5d5d32398f09bd98fa87ea /app/models/service.rb | |
parent | 084bb6b1fc2a352857d8bc9c243003c029b17a3e (diff) | |
download | gitlab-ce-a355ea6f17ce89897d2c6496b363e5c77f48919b.tar.gz |
Default values gem
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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 26060d00b02..f7e440dcc81 100644 --- a/app/models/service.rb +++ b/app/models/service.rb @@ -19,6 +19,8 @@ # To add new service you should build a class inherited from Service # and implement a set of methods class Service < ActiveRecord::Base + default_value_for :active, false + attr_accessible :title, :token, :type, :active, :api_key belongs_to :project |