has_destroy_flag?(hash)
Determines if a hash contains a truthy _destroy key.
# File activerecord/lib/active_record/nested_attributes.rb, line 574 def has_destroy_flag?(hash) Type::Boolean.new.cast(hash["_destroy"]) end