Skip to content

Commit

Permalink
fix eager loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alucardpj committed Apr 1, 2015
1 parent 0360fc5 commit 4f07a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sneakers/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace :sneakers do
desc "Start work (set $WORKERS=Klass1,Klass2)"
task :run => :environment do

::Rails.application.eager_load!
workers, missing_workers = Sneakers::Utils.parse_workers(ENV['WORKERS'])

unless missing_workers.empty?
Expand Down

0 comments on commit 4f07a83

Please sign in to comment.