First page Back Continue Last page Overview Text

Notes:


(2 secs) The first step is the method definition for validates, which just passes along the block it receives, along with a reference to the current object, to a new DSL class.

The DSL class is named ValidationHelpersAttributesBlock to indicate method names inside the block are used to specify attributes.

http://github.com/jeremyevans/sequel_validation_helpers_block/blob/master/lib/sequel_validation_helpers_block.rb#L83