embark-journey 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/journey/resource/attribute_loading.rb +3 -2
- data/lib/journey/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: e2946db61324d75d323b00cc5b14ca7d75736a09
|
4
|
+
data.tar.gz: 2d427c591352c52dc1c0185dd0eb3075ad97656f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51338af54f23c9deb21efa8159aead56801e2dd7bbae69e54c0cee93141c88b54ec86c10b8f18ce62bc5b518845e0021b185b258e060632d21c1db57b1ea8b72
|
7
|
+
data.tar.gz: 832da922d93cb9ffa15b4c8f1062ef66f55715a7e87af86927957931e987538827327a4026e189c2bf64508cf36d8bba1995196093432957d5a72dc040ad7805
|
data/CHANGELOG.md
CHANGED
@@ -13,11 +13,12 @@ module Journey::Resource::AttributeLoading
|
|
13
13
|
|
14
14
|
super(attributes, remove_root, persisted).tap do
|
15
15
|
|
16
|
-
# set the cached value of any updated associations (e.g. parent_id)
|
16
|
+
# set the cached value of any updated associations (e.g. parent for parent_id)
|
17
17
|
# to nil so that they can be re-fetched
|
18
18
|
attributes.keys.map(&:to_s).select{ |key| key =~ /_id$/ }.each do |association_key|
|
19
19
|
association = association_key.gsub /_id$/, ''
|
20
|
-
|
20
|
+
ivar_name = "@#{association}"
|
21
|
+
remove_instance_variable(ivar_name) if instance_variable_defined?(ivar_name)
|
21
22
|
end
|
22
23
|
|
23
24
|
# allow enum_sets to be loaded by key (rather than index)
|
data/lib/journey/version.rb
CHANGED