create_custom_attributes 0.5.7 → 0.5.8

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
  SHA1:
3
- metadata.gz: cf890370327f165ba9bc5a081172e4a69a678274
4
- data.tar.gz: 70488210483c66dcf987ffdb423cfccff4cb0a94
3
+ metadata.gz: 5c81f223a24054808301205dafce2b9a9eb61894
4
+ data.tar.gz: 9ea89eab54293e3870a451525bca6846b5ddc9b9
5
5
  SHA512:
6
- metadata.gz: 550beb6f9701b3ca8ddf7be358b225e59fa01f2c9bda1ed438d04bc80d1da3d93f1ef5a7b952000e6a3a1aa793034ea6960e41816784ef1b3ec3587bf70a7943
7
- data.tar.gz: 97eea32a160ff736fa2ae34ad550ff8da4502e9b4689e0e8ecbdce6d4682b13dbd22ed871b47bfc5ec24685675e10413f086716c0d812f50ae1ead26575f6c2d
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: course, custom_field: field)
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
@@ -1,3 +1,3 @@
1
1
  module CustomAttributes
2
- VERSION = '0.5.7'.freeze
2
+ VERSION = '0.5.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: create_custom_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Grützmacher