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 commit6b69ae5149
, reversing changes made to84bd9adafd
. 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:
parent
6b69ae5149
commit
30016df82f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue