Skip to content

Commit

Permalink
Revert "Fix: Preload app files on Rails 3.x. See: http://guides.rubyo…
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Aug 23, 2011
1 parent 6130fc2 commit 6d03ab5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/resque/tasks.rb
Expand Up @@ -43,12 +43,8 @@
# Preload app files if this is Rails
task :preload 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
Expand Down

0 comments on commit 6d03ab5

Please sign in to comment.