custom-attributes 0.2.16 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.16
1
+ 0.2.17
@@ -13,7 +13,7 @@ class ActiveRecord::CustomAttributes::CustomAttributeList
13
13
  attribute_type = attribute_type.to_sym
14
14
  if supported_attribute_types.keys.include? attribute_type
15
15
  values.each do |key, attributes|
16
- removed = attributes["_destroy"]
16
+ removed = attributes["_destroy"].to_s == "true"
17
17
  add attribute_type, attributes["label"], attributes["value"] unless key == "%nr%" or removed
18
18
  end
19
19
  end
@@ -136,7 +136,8 @@ describe "Custom attributes of a person" do
136
136
  },
137
137
  "1" => {
138
138
  "label" => "Werk",
139
- "value" => "1234567890"
139
+ "value" => "1234567890",
140
+ "_destroy" => "false"
140
141
  }
141
142
  },
142
143
  "email" => {
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom-attributes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 16
10
- version: 0.2.16
9
+ - 17
10
+ version: 0.2.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthijs Groen