create_custom_attributes 0.5.7 → 0.5.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c81f223a24054808301205dafce2b9a9eb61894
|
4
|
+
data.tar.gz: 9ea89eab54293e3870a451525bca6846b5ddc9b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35f4434fb420573b3f8100ce4230e07b1b5fa1ee83ba75b53bee10598a57a2816d39d48d0a33b40b7b36822f24f75b8f9aef13af3000df3e8a33b942d1ea2c3d
|
7
|
+
data.tar.gz: a67661aa585f863f3de34eadea9d81202f2ab22068729584f1dc9df3ba1f66e73638e2c95a62bd6bf9934df63f007cf192d1cf8b52d6459a597759623fbcc5e2
|
@@ -128,7 +128,7 @@ module CustomAttributes
|
|
128
128
|
x.instance_variable_set('@value', values.map(&:value))
|
129
129
|
else
|
130
130
|
cv = custom_values.detect { |v| v.custom_field == field }
|
131
|
-
cv ||= custom_values.build(customizable:
|
131
|
+
cv ||= custom_values.build(customizable: self, custom_field: field)
|
132
132
|
x.instance_variable_set('@value', cv.value)
|
133
133
|
end
|
134
134
|
x.value_was = x.value.dup if x.value
|