aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/test.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2015-10-09 06:59:51 +1030
committerMatthew Draper <matthew@trebex.net>2015-10-09 07:09:57 +1030
commit1b6fcae948b162efbd17f08ca563ff05742bf01b (patch)
tree08c9f8f609fbf38428ecc096f25604a8692ea80a /railties/lib/rails/commands/test.rb
parent2f5ceffdfa10037dccb58c5faafd26af27de63aa (diff)
downloadrails-1b6fcae948b162efbd17f08ca563ff05742bf01b.tar.gz
rails-1b6fcae948b162efbd17f08ca563ff05742bf01b.tar.bz2
rails-1b6fcae948b162efbd17f08ca563ff05742bf01b.zip
Avoid leaking the first relation we call #first on
With the previous implementation, the block passed to define_singleton_method, which will live forever as the method body, captures the parameters (args and block) in its enclosure. For the current_scope registry, that can include an AR::Relation.
Diffstat (limited to 'railties/lib/rails/commands/test.rb')
0 files changed, 0 insertions, 0 deletions