Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Validations' :if blocks are run before any :on checks are made #341
In Rails 3, if you have both an :if block and an :on declaration on the same validation, the :if block runs before the :on declaration is checked. For example, in the following code: