Skip to content

Commit

Permalink
Merge b104571 into 40f4243
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar committed Jan 8, 2018
2 parents 40f4243 + b104571 commit fabfd97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/tasks.rb
Expand Up @@ -40,7 +40,7 @@
# Preload app files if this is Rails
task :preload => :setup do
if defined?(Rails)
if Rails::VERSION::MAJOR > 3
if Rails::VERSION::MAJOR > 3 && Rails.application.config.eager_load
ActiveSupport.run_load_hooks(:before_eager_load, Rails.application)
Rails.application.config.eager_load_namespaces.each(&:eager_load!)

Expand Down

0 comments on commit fabfd97

Please sign in to comment.