datamapper/dm-validations — pull request #65 by mibon (2013-08-29 09:06:55+00:00)
Title: Add support of Proc value to numeicality validator

Hi

I added support of Proc values to numerical validators(gte, gt, lte, lt etc.)
Usage example
validates_numericliaty_of :some_val, gt: Proc.new { |s| s.another_value }
where s is a current resource