jeremyevans/sequel — pull request #498 by chanks (2012-06-16 03:53:04+00:00)
Title: Nested attributes plugin: allow the :fields option to accept a proc.

A tiny addition to the nested_attributes plugin - let the :fields option accept a proc or other callable in addition to an array. If provided, the callable is passed the associated object (the child upon which the attributes hash is being set) and should return an array of the acceptable fields for the attributes hash.