zuora_connect 2.0.48 → 2.0.49

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: daddb097de6552b28814bad631e89cab098c6833c262c42cc9785bd669bc9c23
4
- data.tar.gz: f82338fc20bb3d6d192a9e5fb74c148a113cd6ae8eba96cd9a8b55d01f205f9f
3
+ metadata.gz: 66e0c185eb5a4cd487c417c78ce7907bf52a9a1b14a181ad216a8dea8700f20c
4
+ data.tar.gz: bff4d5e1efd62d4bae9f0171a1142da765da5e73a889e301696d5ee58ee66794
5
5
  SHA512:
6
- metadata.gz: 917a061d181edc582e6d525ad506eafb565cac442e2357c4a923a2ea7afe57196a39d26dc468c40f428a2f7f1f823be0803cae5a3ed32d6f02c96625cec6f776
7
- data.tar.gz: 01d546e90a6270e804a517382dbbb5824c6939477b016aac1a53a2682e599c4cbe9e8535883151386821ef92f5704c4169990f8cbac457e52f60e5ffcd1464d0
6
+ metadata.gz: f662ae258af4280a65d0cd6ec4e61bbf429e4475a87c70b222d0626d5a81ed2bba17bfd9908eef502d0bc8ed039855badae826de94aeaa5d19ce15958d80b097
7
+ data.tar.gz: f3f13b1d620b0aa387b82599aee3e678d9fbf54459d13e3c9794457f662c7f4ad6a4b5cbdac0e53e80db906d098f62558388bb4003a16465fad5d73f32411399
@@ -1156,13 +1156,15 @@ module ZuoraConnect
1156
1156
  end
1157
1157
 
1158
1158
  def reload_attributes(selected_attributes)
1159
- raise "Attibutes must be array" if selected_attributes.class != Array
1160
- value_attributes = self.class.unscoped.where(:id=>id).select(selected_attributes).first.attributes
1159
+ raise "Attibutes must be array" unless selected_attributes.is_a?(Array)
1160
+ selected_attributes.push(:organizations, :environment, :zuora_tenant_ids)
1161
+ selected_attributes.uniq!
1162
+ value_attributes = self.class.unscoped.where(id: id).select(selected_attributes).first.attributes
1161
1163
  value_attributes.each do |key, value|
1162
1164
  next if key == "id" && value.blank?
1163
1165
  self.send(:write_attribute, key, value)
1164
1166
  end
1165
- return self
1167
+ self
1166
1168
  end
1167
1169
 
1168
1170
  def instance_failure(failure)
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "2.0.48"
2
+ VERSION = "2.0.49"
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.48
4
+ version: 2.0.49
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-12 00:00:00.000000000 Z
11
+ date: 2020-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment