method
call_reject_if
v2.3.8 -
Show latest stable
- Class:
ActiveRecord::NestedAttributes
call_reject_if(association_name, attributes)private
No documentation available.
# File activerecord/lib/active_record/nested_attributes.rb, line 391
def call_reject_if(association_name, attributes)
case callback = nested_attributes_options[association_name][:reject_if]
when Symbol
method(callback).arity == 0 ? send(callback) : send(callback, attributes)
when Proc
callback.call(attributes)
end
end