attribute_sanitizer 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/attribute_sanitizer_dsl.rb +2 -1
  2. metadata +1 -1
@@ -60,7 +60,8 @@ class AttributeSanitizer
60
60
  klass = mapping[key]
61
61
  add_step do |attrs|
62
62
  if attrs.has_key?(key)
63
- attrs[key].compact.map! { |h| klass.sanitize_attributes(h) }
63
+ attrs[key].compact!
64
+ attrs[key].map! { |val| klass.sanitize_attributes(val) }
64
65
  end
65
66
  attrs
66
67
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: attribute_sanitizer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jim Garvin