Skip to content

Commit

Permalink
Mention the correct way to halt callback chains
Browse files Browse the repository at this point in the history
The previous title was misleading.

[ci skip]
  • Loading branch information
caike committed Dec 16, 2015
1 parent 89f7764 commit ca512bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/upgrading_ruby_on_rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Don't forget to review the difference, to see if there were any unexpected chang
Upgrading from Rails 4.2 to Rails 5.0
-------------------------------------

### Halting callback chains by returning `false`
### Halting callback chains via `throw(:abort)`

In Rails 4.2, when a 'before' callback returns `false` in Active Record
and Active Model, then the entire callback chain is halted. In other words,
Expand Down

0 comments on commit ca512bb

Please sign in to comment.