aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/reply.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-02-14 01:40:00 +0000
committerJon Leighton <j@jonathanleighton.com>2011-02-14 01:40:31 +0000
commitb9ea751d0e56bd00d341766977a607ed3f7ddd0f (patch)
treeada6ed315bf3087a0cf18c8892c9ee714a1bb891 /activerecord/test/models/reply.rb
parent5d6d669bfe1e480dd4d0cc5042b7faba4b469846 (diff)
downloadrails-b9ea751d0e56bd00d341766977a607ed3f7ddd0f.tar.gz
rails-b9ea751d0e56bd00d341766977a607ed3f7ddd0f.tar.bz2
rails-b9ea751d0e56bd00d341766977a607ed3f7ddd0f.zip
Add a transaction wrapper in add_to_target. This means that #build will now also use a transaction. IMO this is reasonable given that the before_add and after_add callbacks might do anything, and this great consistency allows us to abstract out the duplicate code from #build and #create.
Diffstat (limited to 'activerecord/test/models/reply.rb')
0 files changed, 0 insertions, 0 deletions