zuora_connect 2.0.51 → 2.0.52

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67bf3d9eb26d77c8f6ddd8a45f2b0900f69ed2bd519500a8c06dcfc79b8993e5
4
- data.tar.gz: 2afe5f2ce74d8e37e00edb381ec0b1281461b40940dbfb46a2320ce86d44b7a5
3
+ metadata.gz: bb0cb8bf799348f71ae8f7cca99a33545d3e3430df0f39756303c1756c1a724a
4
+ data.tar.gz: f600a3dc9f7890dac632eb0a9881312110cc73893be6b65805921806b0ce5518
5
5
  SHA512:
6
- metadata.gz: bf1cc057fa20672a647de13b37a3e9af804786afadf97e10d31739dbf35b33534506ea9c7c13f5f943c9b0f74687f4df1631f0757fb199922d55d5f3267a7be8
7
- data.tar.gz: b1d412cf127ca13246e7fca3f63b79708e22e1acc0931683dc3d0dfad5801e095ecdd9e559644919b765850debab77bb5faf7cbe732254342db650d866a52332
6
+ metadata.gz: 8096cbe9f312f5e2c27d8c1546bde2ae20f95b6a0011b2de1c6da9b0824871ae24908555c0c117fda0a3f544e7393bde0ffc696a356213c3ab3a027b8979e66b
7
+ data.tar.gz: 0aa2d3ac8bea866d58ef925c8a3a7a208b866ef4ed56f4f91b3746d42ef8d407fb8c06f3af873c049525e06abb69be16ef617f360ec5672591551aa851e9168d
@@ -1162,13 +1162,15 @@ module ZuoraConnect
1162
1162
  end
1163
1163
 
1164
1164
  def reload_attributes(selected_attributes)
1165
- raise "Attibutes must be array" if selected_attributes.class != Array
1166
- value_attributes = self.class.unscoped.where(:id=>id).select(selected_attributes).first.attributes
1165
+ raise "Attibutes must be array" unless selected_attributes.is_a?(Array)
1166
+ selected_attributes.push(:organizations, :environment, :zuora_tenant_ids)
1167
+ selected_attributes.uniq!
1168
+ value_attributes = self.class.unscoped.where(id: id).select(selected_attributes).first.attributes
1167
1169
  value_attributes.each do |key, value|
1168
1170
  next if key == "id" && value.blank?
1169
1171
  self.send(:write_attribute, key, value)
1170
1172
  end
1171
- return self
1173
+ self
1172
1174
  end
1173
1175
 
1174
1176
  def instance_failure(failure)
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "2.0.51"
2
+ VERSION = "2.0.52"
3
3
  end
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: 2.0.51
4
+ version: 2.0.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-30 00:00:00.000000000 Z
11
+ date: 2020-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment