Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add missing documentation for the :reject_if option for nested_attrib…

  • Loading branch information...
commit 668455d9c26993fa2bcb54239e96be70ca3e7059 1 parent 81efec6
@chanks chanks authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/sequel/plugins/nested_attributes.rb
3  lib/sequel/plugins/nested_attributes.rb
@@ -87,6 +87,9 @@ module ClassMethods
# modified through the association_attributes= method to the specific fields given.
# * :limit - For *_to_many associations, a limit on the number of records
# that will be processed, to prevent denial of service attacks.
+ # * :reject_if - A proc that is given each attribute hash before it is
+ # passed to its associated object. If the proc returns a truthy
+ # value, the attribute hash is ignored.
# * :remove - Allow disassociation of nested records (can remove the associated
# object from the parent object, but not destroy the associated object).
# * :transform - A proc to modify attribute hashes before they are
Please sign in to comment.
Something went wrong with that request. Please try again.