rails_multisite 1.0.5 → 1.0.6

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: f7e2c205099ae33332f61e37a6d3f332a3c2ae53
4
- data.tar.gz: 8d999119d228ae6fbff1034276f3182e668bec5d
3
+ metadata.gz: b0faafc90d07852a9892bfee2c81ffdaa84ac1e8
4
+ data.tar.gz: 7f087117db291104d5f4f614e5ceecba7fb911fc
5
5
  SHA512:
6
- metadata.gz: 3a63767fe5db853f5ae53722cd821847dbd86d947fcdd900c2f7bd2076e9a6f3613ef07a24a244c856b83f049c8d85f94061d34e8ba321d9a7632f69cca4013b
7
- data.tar.gz: e975e2ca70ab0c9bfbdd4761c311cbd9dc8983788594cd77910ee2dfeba8e1eebb0d1bca0c195b5b50d43d85cb17417d82233147a47c7409764909b616e5ba7a
6
+ metadata.gz: f184be2f2f9114524b75bd72be7def4880ec925c32f961c0a7a8bd3e8bc6430adf5e49bca58e954c5997b612bf1c1d6a9ab3f5c2018d26c07e208b7f537ac6d4
7
+ data.tar.gz: c5754cd46b5fba345ff8fd1f4a7cc7a1c2b3ba46830c65d3090a761532df663ba3a6a6b0b42e74ea82b564c9cbb983a6aef1cc0af14c9a54e24ee775693d4cbc
@@ -13,6 +13,8 @@ module RailsMultisite
13
13
  end
14
14
 
15
15
  def self.establish_connection(opts)
16
+ opts[:db] = opts[:db].to_s
17
+
16
18
  if opts[:db] == DEFAULT && (!defined?(@@default_spec) || !@@default_spec)
17
19
  # don't do anything .. handled implicitly
18
20
  else
@@ -13,7 +13,7 @@ module RailsMultisite
13
13
  app.middleware.insert_after(ActiveRecord::ConnectionAdapters::ConnectionManagement, RailsMultisite::ConnectionManagement)
14
14
  app.middleware.delete(ActiveRecord::ConnectionAdapters::ConnectionManagement)
15
15
  if ENV['RAILS_DB']
16
- ConnectionManagement.establish_connection(db: ENV['RAILS_DB'].to_sym)
16
+ ConnectionManagement.establish_connection(:db => ENV['RAILS_DB'])
17
17
  end
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module RailsMultisite
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
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.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-14 00:00:00.000000000 Z
11
+ date: 2016-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  requirements: []
67
67
  rubyforge_project:
68
- rubygems_version: 2.6.7
68
+ rubygems_version: 2.5.2
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: Multi tenancy support for Rails