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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b7df40c3e9bc5dadd283008a1d13fff3327fd9b
4
- data.tar.gz: 15c2e28e5f561e704b6b67fa92683ae5c31ea5c0
3
+ metadata.gz: 9482374c98ac24501bd7ee498b5b256e369f4983
4
+ data.tar.gz: fc13d21adba2c269cb1a1e509f051329ff933305
5
5
  SHA512:
6
- metadata.gz: 869449b3091f00a15ed2443994de53603c5dddc332dc9cf96dd4b73eef16bbbd09eec43789b8cf157c07fe8c96e0f2b694089971f01ffd1860c6448fa9dc4d78
7
- data.tar.gz: c6d0e7bfd7b69245ca81d0b03284a671043dadba5c79b55d6d3f6a894aa779fa3adadbc1f58a9068ba5c29cf953934a540ea5e0825053e02517dfe603ebc9f6c
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
- if File.exists?(ConnectionManagement.config_filename)
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(ActiveRecord::ConnectionAdapters::ConnectionManagement, RailsMultisite::ConnectionManagement)
14
- app.middleware.delete(ActiveRecord::ConnectionAdapters::ConnectionManagement)
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(:db => ENV['RAILS_DB'])
18
+ ConnectionManagement.establish_connection(db: ENV['RAILS_DB'])
17
19
  end
18
20
  end
19
21
  end
20
22
  end
21
23
  end
22
-
@@ -1,3 +1,3 @@
1
1
  module RailsMultisite
2
- VERSION = "1.1.0.rc2"
2
+ VERSION = "1.1.0.rc3"
3
3
  end
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.rc2
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-08-31 00:00:00.000000000 Z
11
+ date: 2017-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord