Skip to content

Commit 6d03ab5

Browse files
committed
Revert "Fix: Preload app files on Rails 3.x. See: http://guides.rubyonrails.org/initialization.html#require-app_path"
This reverts commit 45f9d16.
1 parent 6130fc2 commit 6d03ab5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/resque/tasks.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,8 @@
4343
# Preload app files if this is Rails
4444
task :preload do
4545
if defined? Rails
46-
if Rails.version >= '3'
47-
require 'rails/all'
48-
else
49-
Dir["#{Rails.root}/app/**/*.rb"].each do |file|
50-
require file
51-
end
46+
Dir["#{Rails.root}/app/**/*.rb"].each do |file|
47+
require file
5248
end
5349
end
5450
end

0 commit comments

Comments
 (0)