diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-06-14 09:21:31 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-06-17 10:27:02 -0600 |
commit | 068f092ced8483e557725542dd919ab7c516e567 (patch) | |
tree | 26a8fb8e3776fef2a6133b537060742605c09008 /actionpack/test/lib/controller/fake_controllers.rb | |
parent | e7a8fda0336fe733adbdd0bdb642a09327ef22f1 (diff) | |
download | rails-068f092ced8483e557725542dd919ab7c516e567.tar.gz rails-068f092ced8483e557725542dd919ab7c516e567.tar.bz2 rails-068f092ced8483e557725542dd919ab7c516e567.zip |
Don't save through records twice
If the through record gets created in an `after_create` hook that is
defined before the association is defined (therefore after its
`after_create` hook) get saved twice. This ensures that the through
records are created only once, regardless of the order of the hooks.
Diffstat (limited to 'actionpack/test/lib/controller/fake_controllers.rb')
0 files changed, 0 insertions, 0 deletions