rails_multisite 1.0.1 → 1.0.2
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/connection_management.rb +4 -0
- 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: 2336876766f45173f4cb714060e232e042e11e94
|
4
|
+
data.tar.gz: 3411d8bc4733c09b1e5059a4b14a281b4355b68a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75d1602e79472693ddadd793f76652a39a0b93813e6d41acaeec8d15fad5e5f6c99ac3eb1dd309643367d37b9f9c1f848e2cc8b30b3cca9927314c2d32723123
|
7
|
+
data.tar.gz: b81b3cb6fdd17bb35af2f12a26989965d30adeafefed50f403e6e913518d69497f8e9a08e416c476386c3555951ec91a43fac8d2fb864f8cfc9dc4aa4912789d
|
@@ -171,9 +171,13 @@ module RailsMultisite
|
|
171
171
|
def self.load_settings!
|
172
172
|
spec_klass = ActiveRecord::ConnectionAdapters::ConnectionSpecification
|
173
173
|
configs = YAML::load(File.open(self.config_filename))
|
174
|
+
|
175
|
+
no_prepared_statements = ActiveRecord::Base.configurations[Rails.env]["prepared_statements"] == false
|
176
|
+
|
174
177
|
configs.each do |k,v|
|
175
178
|
raise ArgumentError.new("Please do not name any db default!") if k == "default"
|
176
179
|
v[:db_key] = k
|
180
|
+
v[:prepared_statements] = false if no_prepared_statements
|
177
181
|
end
|
178
182
|
|
179
183
|
@@db_spec_cache = Hash[*configs.map do |k, data|
|
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.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Multi tenancy support for Rails
|
14
14
|
email:
|