lib/resque/tasks.rb in resque-1.18.3 vs lib/resque/tasks.rb in resque-1.18.4
- old
+ new
@@ -39,17 +39,13 @@
threads.each { |thread| thread.join }
end
# Preload app files if this is Rails
- task :preload do
+ task :preload => :setup do
if defined? Rails
- if Rails.version >= '3'
- require 'rails/all'
- else
- Dir["#{Rails.root}/app/**/*.rb"].each do |file|
- require file
- end
+ Dir["#{Rails.root}/app/**/*.rb"].each do |file|
+ require file
end
end
end
end