Skip to content

Commit 2787360

Browse files
authored
Merge pull request resque#1654 from resque/revert-1546-activejob-mysql-docs
Revert "Add ActiveJob section to the README"
2 parents 1ea8b87 + c4473da commit 2787360

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

README.markdown

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -541,18 +541,6 @@ From the Rails docs on [`clear_active_connections!`](http://api.rubyonrails.org/
541541
Returns any connections in use by the current thread back to the pool, and also returns connections to the pool cached by threads that are no longer alive.
542542

543543

544-
#### ActiveJob
545-
546-
If you're going to need to use the database in a number of different jobs, consider adding this to your ApplicationJob file:
547-
548-
``` ruby
549-
class ApplicationJob < ActiveJob::Base
550-
before_perform do |job|
551-
ActiveRecord::Base.clear_active_connections!
552-
end
553-
end
554-
```
555-
556544

557545
The Front End
558546
-------------

0 commit comments

Comments
 (0)