dynamic-records-meritfront 2.0.2 → 2.0.3
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/Gemfile.lock +1 -1
- data/lib/dynamic-records-meritfront/version.rb +1 -1
- data/lib/dynamic-records-meritfront.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b0ad57039c2e650f4882c75aaeccca4fe55a771db29e0552ef648a9eaf974be8
|
|
4
|
+
data.tar.gz: 0af2b5a0f1add956c8b6029196237b9945c820204c114498078f8bf80be90ecf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86ca4444f4848bb8af6389f005faf9a9813b9a49f0c0b31450d95d4317470c2c0e3e4b6435d3fba1cf57a7f7f1a02b7763a0dde9861b59a53cfac1681e4c6cbb
|
|
7
|
+
data.tar.gz: 29593f3c3ec593384c573e74ff2737e2b97e77cb38dbc371c3847693488095a2b828b316fbe105a0a599efa430c33c611f17637808c51f27932d47b76fccbd45
|
data/Gemfile.lock
CHANGED
|
@@ -547,7 +547,8 @@ module DynamicRecordsMeritfront
|
|
|
547
547
|
active_record_handled = input.slice(*(klass.attribute_names & input.keys))
|
|
548
548
|
record = klass.instantiate(active_record_handled)
|
|
549
549
|
#set those that were not necessarily expected
|
|
550
|
-
|
|
550
|
+
not_expected = input.slice(*(input.keys - klass.attribute_names))
|
|
551
|
+
record.dynamic = not_expected.transform_keys{|k|k.to_sym} if not_expected.keys.any?
|
|
551
552
|
return record
|
|
552
553
|
end
|
|
553
554
|
end
|