allow the :converter Proc form composed_of to return nil #6143

Merged
merged 1 commit into from May 21, 2012
Commits on May 3, 2012
  1. @senny

    allow the :converter Proc form composed_of to return nil

    senny committed Oct 24, 2011
    This makes it possible to filter invalid input values before they are passed
    into the value-object (like empty strings). This behaviour is only relevant
    if the :allow_nil options is set to true. Otherwise you will get
    the resulting NoMethodError.