ree_lib 1.0.119 → 1.0.120

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
  SHA256:
3
- metadata.gz: f74fddaac7132110d9917614ea455fff6eb718eaf8ed969fc897995346d915b3
4
- data.tar.gz: 52d6b3e4461d320f8fd3affdb37b46cfe1ebb56d9fbc4879020021bbb3515746
3
+ metadata.gz: e2116bbd5ccddea0d1712d9735936d9254e39218adda88a3b5589e8f38b10683
4
+ data.tar.gz: 878f695cf24c9f46bf41549a5213bf03e63d58f2a957c255a4b12559926dd86c
5
5
  SHA512:
6
- metadata.gz: 9c66a59c59055abdd1bfa11358f0e9b0d645b45e2fa2d7b0d3bbdbed8e545763bb650de824baf7e7a484999cff28106e0be102a0f7c2543579c6b6f404eb9766
7
- data.tar.gz: 43bb3573292d9c2392aa8964d4a0640c0eee93be1aac867fcfa029e594b9096df78d77736c0b9b43900e3828f99b353b58051e2e942165f572429c54f6263468
6
+ metadata.gz: 69ea27c870a0e5982eb019afa07486f00c6e21e5c916505141cb31748971bd2dab19f05ebecb5c58011540e6eb5e120971c28fe8a9fe9833df512ce459ac15d9
7
+ data.tar.gz: b0a5671bf0744fb788a825bc09a6b512b85c3db28f1717bbd91f79184e4372cd4f2bab963588ecd1b7c40b41caa5857fe529e1035aab1e23706e87f3fef3eadd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ree_lib (1.0.119)
4
+ ree_lib (1.0.120)
5
5
  bigdecimal (~> 3.1.6)
6
6
  binding_of_caller (~> 1.0.0)
7
7
  i18n (~> 1.14.1)
@@ -251,7 +251,16 @@ module ReeDao
251
251
 
252
252
  def extract_changes(entity, hash)
253
253
  if is_ree_dto?(entity)
254
- hash.slice(*entity.changed_fields)
254
+ result = {}
255
+ changed = entity.changed_fields
256
+
257
+ hash.each do |k, v|
258
+ if changed.include?(k) || v.respond_to?(:each)
259
+ result[k] = v
260
+ end
261
+ end
262
+
263
+ result
255
264
  else
256
265
  return hash unless entity.instance_variable_defined?(PERSISTENCE_STATE_VARIABLE)
257
266
  changes = {}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReeLib
4
- VERSION = "1.0.119"
4
+ VERSION = "1.0.120"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ree_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.119
4
+ version: 1.0.120
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov