langalex/couch_potato — pull request #45 by jweiss (2011-10-13 13:33:30+00:00)
Title: Activemodel 3.1, Validation fixes and Callback fixes

These commits include the following:

- fix validation callback order

- Handle returns from callbacks correctly.

When a before save/create/update or before validations callback returns
false, the filter chain is halted and the given block will not be
called. This resulted in save operations happening although errors were
present.

Now the return value of all callbacks is checked and the save/update
methods will abort and return false if a filter halted the chain.

- remove validatable