lalala 4.0.0.dev.193 → 4.0.0.dev.194
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/database.rb +10 -0
- data/lib/lalala/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c80ca1ebcffb031dde3e435252d89f23bf60cfa9
|
4
|
+
data.tar.gz: 26f97680b06596592e6fe058307264d0da1479ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce70258673578e29a871209897b3f2edc386e64029575f1342940480b6c780d0f92fd8cb0c41119c5bb4691b445fa6db8d32a3903a8ebf1a2a59ad967f5c57d0
|
7
|
+
data.tar.gz: d915f57bb8b74525003cd6b5f33415bf12ad9829eb472699fa2e6342dfb5dd5a8b9858b6ecea9722d8f8c8b994623817a252f42a5aa0622259d88e6aecbaac38
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Rails.application.config.after_initialize do
|
2
|
+
ActiveRecord::Base.connection_pool.disconnect!
|
3
|
+
|
4
|
+
ActiveSupport.on_load(:active_record) do
|
5
|
+
config = Rails.application.config.database_configuration[Rails.env]
|
6
|
+
config['reaping_frequency'] = ENV['DB_REAP_FREQ'] || 10 # seconds
|
7
|
+
config['pool'] = ENV['DB_POOL'] || 16
|
8
|
+
ActiveRecord::Base.establish_connection(config)
|
9
|
+
end
|
10
|
+
end
|
data/lib/lalala/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lalala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.dev.
|
4
|
+
version: 4.0.0.dev.194
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2013-06-
|
16
|
+
date: 2013-06-07 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: carrierwave
|
@@ -1347,6 +1347,7 @@ files:
|
|
1347
1347
|
- app/views/layouts/lalala/markdown.html.erb
|
1348
1348
|
- config/initializers/active_admin.rb
|
1349
1349
|
- config/initializers/carrierwave.rb
|
1350
|
+
- config/initializers/database.rb
|
1350
1351
|
- config/initializers/devise.rb
|
1351
1352
|
- config/routes.rb
|
1352
1353
|
- db/migrate/20130321140345_devise_create_admin_users.rb
|