Skip to content
Snippets Groups Projects
Verified Commit a355ea6f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Default values gem

parent 084bb6b1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -15,6 +15,9 @@ gem 'rails-observers'
gem 'actionpack-page_caching'
gem 'actionpack-action_caching'
 
# Default values for AR models
gem "default_value_for", "~> 3.0.0"
# Supported DBs
gem "mysql2", group: :mysql
gem "pg", group: :postgres
Loading
Loading
Loading
Loading
@@ -101,6 +101,8 @@ GEM
daemons (1.1.9)
database_cleaner (1.2.0)
debug_inspector (0.0.2)
default_value_for (3.0.0)
activerecord (>= 3.2.0, < 5.0)
descendants_tracker (0.0.3)
devise (3.0.4)
bcrypt-ruby (~> 3.0)
Loading
Loading
@@ -570,6 +572,7 @@ DEPENDENCIES
coveralls
d3_rails (~> 3.1.4)
database_cleaner
default_value_for (~> 3.0.0)
devise (= 3.0.4)
devise-async (= 0.8.0)
email_spec
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment