method
call_reject_if
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::NestedAttributes
call_reject_if(association_name, attributes)private
Determines if a record with the particular attributes should be rejected by calling the reject_if Symbol or Proc (if defined). The reject_if option is defined by accepts_nested_attributes_for.
Returns false if there is a destroy_flag on the attributes.