diff options
author | claudiob <claudiob@gmail.com> | 2015-01-11 12:25:53 -0800 |
---|---|---|
committer | claudiob <claudiob@gmail.com> | 2015-01-11 12:29:39 -0800 |
commit | 684cbee4733d47fe242b5637d6bdc48ec16ac536 (patch) | |
tree | 460f848e983418784356c7395674a288838c3816 /activemodel/README.rdoc | |
parent | 72139d8d310d896db78eaec98582c7a638135102 (diff) | |
download | rails-684cbee4733d47fe242b5637d6bdc48ec16ac536.tar.gz rails-684cbee4733d47fe242b5637d6bdc48ec16ac536.tar.bz2 rails-684cbee4733d47fe242b5637d6bdc48ec16ac536.zip |
Add test for AM::Validation::Callbacks with :on
`before_validation` and `after_validation` from
ActiveModel::Validation::Callbacks accept an optional `:on` parameter
that was not previously documented or tested. For instance given
before_validation :do_something, on: :create
then `object.valid?(:create)` will invoke `:do_something` while
`object.valid?` or `object.valid?(:anything_else)` will not.
Diffstat (limited to 'activemodel/README.rdoc')
0 files changed, 0 insertions, 0 deletions