Method: NestedRecord::Collection#reject_by!
- Defined in:
- lib/nested_record/collection.rb
#reject_by!(attrs) ⇒ Object
78 79 80 81 82 |
# File 'lib/nested_record/collection.rb', line 78 def reject_by!(attrs) return to_enum(:reject_by!) unless block_given? attrs = attrs.stringify_keys reject! { |obj| obj.match?(attrs) } end |