diff options
author | Cristian Bica <cristian.bica@gmail.com> | 2014-08-16 00:02:06 +0300 |
---|---|---|
committer | Cristian Bica <cristian.bica@gmail.com> | 2014-08-16 00:02:06 +0300 |
commit | 788aee5acf195d55914e086540f907d9291e9d24 (patch) | |
tree | 614c906eeb3f5eaec9d4ac170d105445b7fc5b73 /activejob/test/jobs/gid_job.rb | |
parent | c2f1eca19409cbbe72bf89b2087b212341201aa1 (diff) | |
download | rails-788aee5acf195d55914e086540f907d9291e9d24.tar.gz rails-788aee5acf195d55914e086540f907d9291e9d24.tar.bz2 rails-788aee5acf195d55914e086540f907d9291e9d24.zip |
Moved AR testing from using global variable to thread variable
Diffstat (limited to 'activejob/test/jobs/gid_job.rb')
-rw-r--r-- | activejob/test/jobs/gid_job.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/test/jobs/gid_job.rb b/activejob/test/jobs/gid_job.rb index c69e38d3cc..eeb34c8a87 100644 --- a/activejob/test/jobs/gid_job.rb +++ b/activejob/test/jobs/gid_job.rb @@ -1,6 +1,6 @@ class GidJob < ActiveJob::Base def perform(person) - $BUFFER << "Person with ID: #{person.id}" + Thread.current[:ajbuffer] << "Person with ID: #{person.id}" end end -
\ No newline at end of file + |