bcardarella/client_side_validations — pull request #302 by ares (2012-03-26 18:39:35+00:00)
Title: Enabled if and unless specification

You can specify :if or :unless (not both!) using a string, symbol
or even Proc. Seems to work for me.

Also fixed one problem in existing tests. title_changed? and
cost_changed? are not defined automatically so they must
be stubbed.

I also added tests for new functionality. It's tested only
for present validators same as other existing tests.

This pullrequest is just rebased version of #299 and original issue refs #239 hope this time it's according to your needs :)