Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RAILS_ROOT is deprecated
  • Loading branch information
defunkt committed Aug 19, 2011
1 parent 2cbc85a commit cbb400b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resque/tasks.rb
Expand Up @@ -42,8 +42,8 @@

# Preload app files if this is Rails
task :preload do
if defined? RAILS_ROOT
Dir["#{RAILS_ROOT}/app/**/*.rb"].each do |file|
if defined? Rails
Dir["#{Rails.root}/app/**/*.rb"].each do |file|
require file
end
end
Expand Down

0 comments on commit cbb400b

Please sign in to comment.