rails_multisite 1.1.0.rc2 → 1.1.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rails_multisite might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/rails_multisite/railtie.rb +6 -5
- data/lib/rails_multisite/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9482374c98ac24501bd7ee498b5b256e369f4983
|
4
|
+
data.tar.gz: fc13d21adba2c269cb1a1e509f051329ff933305
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5510ae2b38586780fce33a49ebeb87ae04238ca3813fd2146d34d300cfec525cdec4054b4185ed690a6fb24e784cbde132c95969c48f1d845e8c4fc521dae5a2
|
7
|
+
data.tar.gz: '0952fd1f2e935419fc8bacaa1f3fdef11d77060249f01a97b20c1c9a63b2a1557f3f387ccb5374b54b7b828e2c8c7a23cb008db8b6cd97db776f29586528b51b'
|
@@ -6,17 +6,18 @@ module RailsMultisite
|
|
6
6
|
|
7
7
|
initializer "RailsMultisite.init" do |app|
|
8
8
|
Rails.configuration.multisite = false
|
9
|
-
|
9
|
+
|
10
|
+
if File.exist?(ConnectionManagement.config_filename)
|
10
11
|
Rails.configuration.multisite = true
|
11
12
|
Rails.logger.formatter = RailsMultisite::Formatter.new
|
12
13
|
ConnectionManagement.load_settings!
|
13
|
-
app.middleware.insert_after(
|
14
|
-
app.middleware.delete(
|
14
|
+
app.middleware.insert_after(ActionDispatch::Executor, RailsMultisite::ConnectionManagement)
|
15
|
+
app.middleware.delete(ActionDispatch::Executor)
|
16
|
+
|
15
17
|
if ENV['RAILS_DB']
|
16
|
-
ConnectionManagement.establish_connection(:
|
18
|
+
ConnectionManagement.establish_connection(db: ENV['RAILS_DB'])
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
22
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_multisite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.
|
4
|
+
version: 1.1.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|