domain_switcher 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/domain_switcher/cache.rb +1 -1
  2. metadata +3 -3
@@ -19,7 +19,7 @@ module DomainSwitcher
19
19
  Rails.logger.info "DomainSwitcher: Use existing cache => namespace is the same: #{namespace}"
20
20
  RAILS_CACHE
21
21
  else
22
- c.class.new(d.instance_variable_get('@servers'), d.instance_variable_get('@options').merge(:namespace => namespace, :prefix_key => namespace))
22
+ c.class.new(d.class.new(instance_variable_get('@servers'), d.instance_variable_get('@options').merge(:namespace => namespace, :prefix_key => namespace)))
23
23
  end
24
24
  elsif c.is_a? ActiveSupport::Cache::FileStore
25
25
  c.class.new("tmp/cache/#{namespace}")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domain_switcher
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guillaume Luccisano