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.
- data/lib/attribute_sanitizer_dsl.rb +2 -1
- 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
|
63
|
+
attrs[key].compact!
|
64
|
+
attrs[key].map! { |val| klass.sanitize_attributes(val) }
|
64
65
|
end
|
65
66
|
attrs
|
66
67
|
end
|