Skip to content

Commit

Permalink
Attempt to preload files under app/ when using Rails
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Aug 18, 2011
1 parent 8c9be28 commit fedbe17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/resque/tasks.rb
Expand Up @@ -40,3 +40,10 @@
threads.each { |thread| thread.join }
end
end

# Preload app files
task :environment do
Dir['app/**/*.rb'].each do |file|
require file
end
end

0 comments on commit fedbe17

Please sign in to comment.