diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-05-18 17:53:19 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-05-18 17:53:19 -0300 |
commit | 8327f63decdc3c02f969bccb786c0b6ef632d3b0 (patch) | |
tree | 530ca27002a0fa4a733062c874a73faa78ffead2 | |
parent | b98c1f948903cef4bdd88a8d6777e480f5770d2f (diff) | |
parent | 75c221f10ff94f8f91f9b0664f0f41c053d47c51 (diff) | |
download | rails-8327f63decdc3c02f969bccb786c0b6ef632d3b0.tar.gz rails-8327f63decdc3c02f969bccb786c0b6ef632d3b0.tar.bz2 rails-8327f63decdc3c02f969bccb786c0b6ef632d3b0.zip |
Merge pull request #25066 from mohitnatoo/rails-validation-happens
Removing redundant 'happens' in callbacks documentation
-rw-r--r-- | activemodel/lib/active_model/validations/callbacks.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/validations/callbacks.rb b/activemodel/lib/active_model/validations/callbacks.rb index 52111e5442..a201f72ed0 100644 --- a/activemodel/lib/active_model/validations/callbacks.rb +++ b/activemodel/lib/active_model/validations/callbacks.rb @@ -29,8 +29,7 @@ module ActiveModel end module ClassMethods - # Defines a callback that will get called right before validation - # happens. + # Defines a callback that will get called right before validation. # # class Person # include ActiveModel::Validations @@ -65,8 +64,7 @@ module ActiveModel set_callback(:validation, :before, *args, &block) end - # Defines a callback that will get called right after validation - # happens. + # Defines a callback that will get called right after validation. # # class Person # include ActiveModel::Validations |