lib/on_form/collection_wrapper.rb
# 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 +expose_collection_of+.
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 +expose_collection_of+.
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 + expose_collection_of + .
def call_reject_if(attributes)
      case reject_if
      when Symbol
        @collection_form_class.method(reject_if).arity == 0 ? @collection_form_class.send(reject_if) : @collection_form_class.send(reject_if, attributes)
      when Proc
        reject_if.call(attributes)
      else
        false
      end
    end
def call_reject_if ( attributes ) case reject_if when Symbol @collection_form_class . method ( reject_if ) . arity == 0 ? @collection_form_class . send ( reject_if ) : @collection_form_class . send ( reject_if , attributes ) when Proc reject_if . call ( attributes ) else false end end
Determines if a record with the particular +attributes+ should be
rejected by calling the reject_if Symbol or Proc (if defined).
Determines if a record with the particular + attributes + should be rejected by calling the reject_if Symbol or Proc ( if defined ) .
attributes
<not_specific>