Module: Dynamoid::Dumping::DeepSanitizeHelper
Instance Method Summary collapse
Instance Method Details
#deep_sanitize(value) ⇒ Object
51 52 53 54 55 56 57 58 59 60 |
# File 'lib/dynamoid/dumping.rb', line 51 def deep_sanitize(value) case value when Hash sanitize_hash(value).transform_values { |v| deep_sanitize(v) } when Array sanitize_array(value).map { |v| deep_sanitize(v) } else value end end |