Skip to content

Commit

Permalink
Merge pull request #35324 from sharang-d/patch-2
Browse files Browse the repository at this point in the history
Update active_record_callbacks.md [ci skip]
  • Loading branch information
vipulnsward committed Feb 19, 2019
2 parents 84bd9ad + b0f85c6 commit 6b69ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/active_record_callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ end

### Combining Callback Conditions

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.
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.

```ruby
class Comment < ApplicationRecord
Expand Down

0 comments on commit 6b69ae5

Please sign in to comment.