zuora_connect 1.5.06 → 1.5.07
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/zuora_connect/app_instance_base.rb +12 -10
- data/lib/zuora_connect/version.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b60d15e47948f33ed483660d8d0b3e3bfb2e3fd
|
4
|
+
data.tar.gz: 75822aee86c64e18dd5befa34e14891122764c24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1f602d5641a0e92adddf46d4b7f4e3555aa860f2ae8630cbdd771b32c1b14602846dbbc3991221c0c79721bad0e3876103b0a2e65c1f69401f0fab3b421a4a4
|
7
|
+
data.tar.gz: bf9f9151fba72f1b0a1e7ff5e3a20550283dcebee7b99ddce79f835373cf9e2dd60fb0c86a2edfaf8b26ecea46d83be4e83d9bc3e4889a56582abc34c8adafdc
|
@@ -6,17 +6,19 @@ module ZuoraConnect
|
|
6
6
|
attr_accessor :options, :mode, :logins, :valid, :task_data, :last_refresh, :username, :password, :s3_client, :api_version
|
7
7
|
|
8
8
|
def init
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
9
|
+
if self.persisted?
|
10
|
+
@options = Hash.new
|
11
|
+
@logins = Hash.new
|
12
|
+
@valid = false
|
13
|
+
self.attr_builder("timezone", ZuoraConnect.configuration.default_time_zone)
|
14
|
+
self.attr_builder("locale", ZuoraConnect.configuration.default_locale)
|
15
|
+
PaperTrail.whodunnit = "Backend" if defined?(PaperTrail)
|
16
|
+
Apartment::Tenant.switch!(self.id)
|
17
|
+
if(ActiveRecord::Migrator.needs_migration?)
|
18
|
+
Apartment::Migrator.migrate(self.id)
|
19
|
+
end
|
20
|
+
Thread.current[:appinstance] = self
|
18
21
|
end
|
19
|
-
Thread.current[:appinstance] = self
|
20
22
|
end
|
21
23
|
|
22
24
|
def data_lookup(session: {})
|