Shopify/batman — pull request #560 by mattwdh (2012-10-02 02:05:19+00:00)
Title: Expand the NumericValidator by adding options for value equality

I've added Rails style equality validation to the `NumericValidator`. Rails implements the feature [here](https://github.com/rails/rails/blob/master/activemodel/lib/active_model/validations/numericality.rb) and tests it [here](https://github.com/rails/rails/blob/master/activemodel/test/cases/validations/numericality_validation_test.rb#L53). This includes `greaterThan`, `greaterThanOrEqualTo`, `equalTo`, `lessThan` and `lessThanOrEqualTo` but excludes `odd`, `even`, and `otherThan`.

There may be room to DRY this up, but I don't see any obvious method. Suggestions?

I've compiled the changes, but was having problems rendering the new docs that are needed for my update to `docs/14_model.percolate`. Help compiling these is welcome.

@hornairs Please review, thanks!