diff options
| author | Jon Leighton <j@jonathanleighton.com> | 2011-02-14 01:40:00 +0000 |
|---|---|---|
| committer | Jon Leighton <j@jonathanleighton.com> | 2011-02-14 01:40:31 +0000 |
| commit | b9ea751d0e56bd00d341766977a607ed3f7ddd0f (patch) | |
| tree | ada6ed315bf3087a0cf18c8892c9ee714a1bb891 /railties/lib/rails/commands/runner.rb | |
| parent | 5d6d669bfe1e480dd4d0cc5042b7faba4b469846 (diff) | |
| download | rails-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 'railties/lib/rails/commands/runner.rb')
0 files changed, 0 insertions, 0 deletions
