1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revert "Merge pull request #35324 from sharang-d/patch-2"

This reverts commit 6b69ae5149, reversing
changes made to 84bd9adafd.

Reason: We already use "happen" a lots for callbacks and validations.

https://github.com/rails/rails/pull/35324#issuecomment-465096483

[ci skip]
This commit is contained in:
Ryuta Kamizono 2019-02-19 20:43:59 +09:00
parent 6b69ae5149
commit 30016df82f

View file

@ -340,7 +340,7 @@ end
### Combining Callback Conditions
When multiple conditions define whether or not a callback should execute, an `Array` can be used. Moreover, you can apply both `:if` and `:unless` to the same callback.
When multiple conditions define whether or not a callback should happen, an `Array` can be used. Moreover, you can apply both `:if` and `:unless` to the same callback.
```ruby
class Comment < ApplicationRecord