Skip to content

Commit

Permalink
Only preload Rails app/ dir in production
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Aug 24, 2011
1 parent b48f614 commit e35bbab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/tasks.rb
Expand Up @@ -42,7 +42,7 @@

# Preload app files if this is Rails
task :preload => :setup do
if defined? Rails
if defined?(Rails) && Rails.env == 'production'
Dir["#{Rails.root}/app/**/*.rb"].each do |file|
require file
end
Expand Down

0 comments on commit e35bbab

Please sign in to comment.