dynflow 1.6.4 → 1.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dynflow/rails/configuration.rb +2 -2
- data/lib/dynflow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d8777e2b8ec72f0cb4976e3469a0504129588c37b78de71c95bd0aeb378d698
|
4
|
+
data.tar.gz: 457be311485f9d2990feb5a1f8011506c27f0714eb1b77e5150c53b43d187b02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e2f820dbd02c340ac001d70424026ab71ef16e49b5fb4ea5a946428b7b8bfb3532ac659549c726ffd263ef3a38f679e09e4be6b1f24b9275670552fcb9439fd
|
7
|
+
data.tar.gz: 07e329f9a1a40638fed22525e001a87bdbb00cc9009984116b04bc2cece00e7171fbb868ffb3f49c38907a6683879c0fa726ce99c9c02506d13becf5ce17d111
|
@@ -127,7 +127,7 @@ module Dynflow
|
|
127
127
|
db_pool_size = calculate_db_pool_size(world)
|
128
128
|
::ActiveRecord::Base.connection_pool.disconnect!
|
129
129
|
|
130
|
-
config = ::ActiveRecord::Base.configurations
|
130
|
+
config = ::ActiveRecord::Base.configurations.configs_for(env_name: ::Rails.env)[0].config.dup
|
131
131
|
config['pool'] = db_pool_size if config['pool'].to_i < db_pool_size
|
132
132
|
::ActiveRecord::Base.establish_connection(config)
|
133
133
|
end
|
@@ -158,7 +158,7 @@ module Dynflow
|
|
158
158
|
protected
|
159
159
|
|
160
160
|
def default_sequel_adapter_options(world)
|
161
|
-
db_config = ::
|
161
|
+
db_config = ::ActiveRecord::Base.configurations.configs_for(env_name: ::Rails.env)[0].config.dup
|
162
162
|
db_config['adapter'] = db_config['adapter'].gsub(/_?makara_?/, '')
|
163
163
|
db_config['adapter'] = 'postgres' if db_config['adapter'] == 'postgresql'
|
164
164
|
db_config['max_connections'] = calculate_db_pool_size(world) if increase_db_pool_size?
|
data/lib/dynflow/version.rb
CHANGED