zuora_connect 1.4.0a → 1.4.0b
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.
- checksums.yaml +4 -4
- data/app/models/zuora_connect/app_instance_base.rb +4 -4
- data/lib/zuora_connect/version.rb +1 -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: 51c6b79546e31ef0c4f3a0061808b6edf4c48c6f
|
4
|
+
data.tar.gz: c8f4805075a192acc92386393ddc232c9a604dfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 405d2545610a910317fc2a0902d8e272147b34673bb1b66a96c564a57e0a76fb90cf67e6c2fb028e98dc2ad5c6acf694fc82d469c21d55b7d4c77a0b506a8219
|
7
|
+
data.tar.gz: e1a5927aed0d82c6ed6c0520cb1e0a589669bbbf3caf24fa107b78ba3e327fe6dbae9cdd53a3cf4c80523d23ba63adc1afa7b69daef31c1795df26ac2e87c50c
|
@@ -11,7 +11,7 @@ module ZuoraConnect
|
|
11
11
|
self.attr_builder("timezone", ZuoraConnect.configuration.default_time_zone)
|
12
12
|
self.attr_builder("locale", ZuoraConnect.configuration.default_locale)
|
13
13
|
Apartment::Tenant.switch!(self.id)
|
14
|
-
if( ActiveRecord::
|
14
|
+
if( ActiveRecord::Migrator.needs_migration?)
|
15
15
|
Apartment::Migrator.migrate(self.id)
|
16
16
|
end
|
17
17
|
Thread.current[:appinstance] = self
|
@@ -27,12 +27,12 @@ module ZuoraConnect
|
|
27
27
|
$redis.del("Deleted:#{self.id}")
|
28
28
|
end
|
29
29
|
|
30
|
-
def decrypt_data(data)
|
30
|
+
def decrypt_data(data)
|
31
31
|
return Rails.env == 'development' ? JSON.parse(data) : JSON.parse(encryptor.decrypt_and_verify(CGI::unescape(data)))
|
32
32
|
end
|
33
33
|
|
34
|
-
def encrypt_data(data)
|
35
|
-
return Rails.env == 'development' ? data : encryptor.encrypt_and_sign(data)
|
34
|
+
def encrypt_data(data)
|
35
|
+
return Rails.env == 'development' ? data : encryptor.encrypt_and_sign(data)
|
36
36
|
end
|
37
37
|
|
38
38
|
def encryptor
|