create_custom_attributes 0.5.6 → 0.5.7

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: d86d6f94aede20a07b0d613605bb2bd174e7b055
4
- data.tar.gz: 369e39943065c415c575019308aa4159287334e1
3
+ metadata.gz: cf890370327f165ba9bc5a081172e4a69a678274
4
+ data.tar.gz: 70488210483c66dcf987ffdb423cfccff4cb0a94
5
5
  SHA512:
6
- metadata.gz: 437e7c2da35085e0b39d7fd851595ffb7beac2e5d6d450f0f7bb8d3364591af0525bb16739d54d4eaaf0b5a2707e49f4faab98d18edd39aefe2da27c34f9b02a
7
- data.tar.gz: 5cc1238b3aa2443051f92d4a41ae67fb6455363e3c65abe8a12300f52ec118b42f93e416006428ff1ef22970079be50ed39f8202f7e02ab17aecf3fa80133a94
6
+ metadata.gz: 550beb6f9701b3ca8ddf7be358b225e59fa01f2c9bda1ed438d04bc80d1da3d93f1ef5a7b952000e6a3a1aa793034ea6960e41816784ef1b3ec3587bf70a7943
7
+ data.tar.gz: 97eea32a160ff736fa2ae34ad550ff8da4502e9b4689e0e8ecbdce6d4682b13dbd22ed871b47bfc5ec24685675e10413f086716c0d812f50ae1ead26575f6c2d
@@ -119,7 +119,7 @@ module CustomAttributes
119
119
  def populate_custom_field_value(field)
120
120
  x = CustomAttributes::CustomFieldValue.new
121
121
  x.custom_field = field
122
- x.customizable = course
122
+ x.customizable = self
123
123
  if field.multiple?
124
124
  values = custom_values.select { |v| v.custom_field == field }
125
125
  if values.empty?
@@ -1,3 +1,3 @@
1
1
  module CustomAttributes
2
- VERSION = '0.5.6'.freeze
2
+ VERSION = '0.5.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: create_custom_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Grützmacher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-29 00:00:00.000000000 Z
11
+ date: 2018-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails