rails_multisite 3.0.0 → 3.1.0

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
  SHA256:
3
- metadata.gz: ee4885d481591f47f16a367e206e103af5ef3ea1504d65e0c34f97fa8766b91f
4
- data.tar.gz: b6dc6f7d07e5ced80e7da754f5940b30a42a60d02e859afc8c949ffdf24f8b60
3
+ metadata.gz: 99ce217ca2700339f5e12dbe053a99c982e371984d7b52341939c4af8c8dd8f2
4
+ data.tar.gz: d653055f22c50b36201509cb9112a2dde807290bce92e8ccf7d4d53fcfe56628
5
5
  SHA512:
6
- metadata.gz: c9d34362e98ddce5e8f771233ad43a803cf66e71bcd546dedaee3ae4a06991149f2e07d9e6024cbc111ee3166db7c193772cfdf7c78bec729da772b5db06a5bf
7
- data.tar.gz: 4c9fdee8046e62e40be983d6f28f8e0fc703f89129e3d41d7ee9003aefa1c344bd170b7d4a5c1575729b80363ee2a7cfb48ad6a299564db3aa52da2fef0090c4
6
+ metadata.gz: 401d946022e824da7e263da2d8717af89d944bbf7c35ce4e7eab6e64643fdb0a402df73586d2df0e16a3bcb2e4a56f906a7e55f29e5ff496db25df108cc7bda9
7
+ data.tar.gz: e073dbde5eb080f4d78db98c4842cbeafc22c58c4df6e41933321553327e0bdeffad0cd08d3c09d1f35193550b1d38a5814ee5e70125f28a5bbe98cb6839135c
@@ -9,9 +9,14 @@ module RailsMultisite
9
9
  initializer "RailsMultisite.init" do |app|
10
10
  app.config.multisite = false
11
11
 
12
- config_file = ConnectionManagement.default_config_filename
12
+ config_file =
13
+ app.config.respond_to?(:multisite_config_path) &&
14
+ app.config.multisite_config_path.presence
15
+
16
+ config_file ||= ConnectionManagement.default_config_filename
17
+
13
18
  if File.exist?(config_file)
14
- ConnectionManagement.config_filename = ConnectionManagement.default_config_filename
19
+ ConnectionManagement.config_filename = config_file
15
20
  app.config.multisite = true
16
21
  Rails.logger.formatter = RailsMultisite::Formatter.new
17
22
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
3
  module RailsMultisite
4
- VERSION = "3.0.0"
4
+ VERSION = "3.1.0"
5
5
  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: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-24 00:00:00.000000000 Z
11
+ date: 2021-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -72,7 +72,7 @@ files:
72
72
  homepage: ''
73
73
  licenses: []
74
74
  metadata: {}
75
- post_install_message:
75
+ post_install_message:
76
76
  rdoc_options: []
77
77
  require_paths:
78
78
  - lib
@@ -87,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.2.2
91
- signing_key:
90
+ rubygems_version: 3.1.6
91
+ signing_key:
92
92
  specification_version: 4
93
93
  summary: Multi tenancy support for Rails
94
94
  test_files: []