aboutsummaryrefslogtreecommitdiffstats
path: root/rails.gemspec
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-06-14 09:21:31 -0600
committerSean Griffin <sean@thoughtbot.com>2014-06-17 10:27:02 -0600
commit068f092ced8483e557725542dd919ab7c516e567 (patch)
tree26a8fb8e3776fef2a6133b537060742605c09008 /rails.gemspec
parente7a8fda0336fe733adbdd0bdb642a09327ef22f1 (diff)
downloadrails-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 'rails.gemspec')
0 files changed, 0 insertions, 0 deletions