aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/adapters/inline.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 /activejob/test/adapters/inline.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 'activejob/test/adapters/inline.rb')
0 files changed, 0 insertions, 0 deletions