diff options
author | Michael Ryan <perceptec@gmail.com> | 2016-03-04 12:25:43 -0500 |
---|---|---|
committer | Michael Ryan <perceptec@gmail.com> | 2016-03-04 12:37:05 -0500 |
commit | 3de932281a36e138b332eff55aa5c2a9ac7b8bbd (patch) | |
tree | 94ad3abc7f3e061693977ca2f2485fe4b170bb75 /activesupport/test/benchmarkable_test.rb | |
parent | 999b70320b0511b5e2c8663e56a68778b1615796 (diff) | |
download | rails-3de932281a36e138b332eff55aa5c2a9ac7b8bbd.tar.gz rails-3de932281a36e138b332eff55aa5c2a9ac7b8bbd.tar.bz2 rails-3de932281a36e138b332eff55aa5c2a9ac7b8bbd.zip |
Fix author callback in engines guide [ci skip]
The `before_save` callback used with `set_author` results in the
validation error "Author must exist," due to the change in `belongs_to`
behavior introduced by #18937.
Use `before_validation` instead.
Diffstat (limited to 'activesupport/test/benchmarkable_test.rb')
0 files changed, 0 insertions, 0 deletions