Module: ActiveInteraction::Extras::FilterExtensions::HashAutoStrip
- Defined in:
- lib/active_interaction/extras/filter_extensions/hash_auto_strip.rb
Overview
If hash specified without structure automatically accept full hash
Instance Method Summary collapse
Instance Method Details
#initialize ⇒ Object
19 20 21 22 |
# File 'lib/active_interaction/extras/filter_extensions/hash_auto_strip.rb', line 19 def initialize(*) super [:strip] = false if !block_given? && !.key?(:strip) end |