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

Clarify migration to ApplicationRecord in upgrade guides [ci skip]

This commit is contained in:
Marcus Stollsteimer 2016-08-15 21:15:56 +02:00
parent 72c1122a17
commit 9f8de63783

View file

@ -94,6 +94,8 @@ class ApplicationRecord < ActiveRecord::Base
end
```
Then make sure that all your models inherit from it.
### Halting Callback Chains via `throw(:abort)`
In Rails 4.2, when a 'before' callback returns `false` in Active Record