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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fd46e714ed81aade7bf750d0229ec1a96cb3f9f
4
- data.tar.gz: 9ea4c386f993da1f6648acdf33ff854a51d3af79
3
+ metadata.gz: 2336876766f45173f4cb714060e232e042e11e94
4
+ data.tar.gz: 3411d8bc4733c09b1e5059a4b14a281b4355b68a
5
5
  SHA512:
6
- metadata.gz: 7e3c52ff6e9120af35e0b2e5677296d85d453d2d68520682846dcf0c1ff1ee24afe2039b91420ddb8907dc9480ab69a7c66fbcaed3086df909bf8d672b60f053
7
- data.tar.gz: cb516155225e1db227abfb0f36b67d86f8767d47e331e693a25c98d73612964ed2c64ec0e3d19a242f49920e261370e2e365f2903e09d57a7a44f3792f5f8f9f
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|
@@ -1,3 +1,3 @@
1
1
  module RailsMultisite
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
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.0.1
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-13 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Multi tenancy support for Rails
14
14
  email: