zuora_connect 1.5.25 → 1.5.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 827bc4deefe33c1b9a23079188085843f6bedcba
4
- data.tar.gz: 95285b1948e5af2d8bbf6f630149f5a1f540a1f1
3
+ metadata.gz: 40fd6b63a3ba14844f087e05090b6dff10766040
4
+ data.tar.gz: 4f88ec47f1cd4b9b5c2611cf3a33e78bd652825b
5
5
  SHA512:
6
- metadata.gz: 98b52fdbf611da04a51d838f006c585df70227e7c1c1bc9aec0f4994c7bec970e162c4e7978da866452f041332d705e602688ad732a2afd07fc52d82f7262fcd
7
- data.tar.gz: 54c8379b9256508d2e162425371bfdb2d95047799201d51abdc56438620bfa95cdfb3149ecfa9346388f4ec382ece21b432ed5441a7e8405892534782b5080cc
6
+ metadata.gz: 8d85d6951c3ae8d64716e3c8f36497fdf0a16566c96d2472a2a6c9c21b1293ab9bc73f3f9800123d3d156c12b1169f1fde6023a48c458022a1a87c87f8936646
7
+ data.tar.gz: d06edd1b8573522d5bc31d4a523ad6ca4d79be32588eee49cd1e3c217385eb7111017a444a7f02a1e42302e981edae830205ba791dd2c327939dfce39faae256
@@ -12,7 +12,12 @@ module ZuoraConnect
12
12
  self.attr_builder("timezone", ZuoraConnect.configuration.default_time_zone)
13
13
  self.attr_builder("locale", ZuoraConnect.configuration.default_locale)
14
14
  PaperTrail.whodunnit = "Backend" if defined?(PaperTrail)
15
- Apartment::Tenant.switch!(self.id) if self.persisted?
15
+ begin
16
+ Apartment::Tenant.switch!(self.id) if self.persisted?
17
+ rescue Apartment::TenantNotFound => ex
18
+ Apartment::Tenant.create(self.id.to_s)
19
+ retry
20
+ end
16
21
  if(ActiveRecord::Migrator.needs_migration?)
17
22
  Apartment::Migrator.migrate(self.id)
18
23
  end
@@ -1,4 +1,4 @@
1
1
  module ZuoraConnect
2
- VERSION = "1.5.25"
2
+ VERSION = "1.5.26"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.25
4
+ version: 1.5.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-12 00:00:00.000000000 Z
11
+ date: 2018-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment