From 8fdd66adc0fd3b1658585b67937a6becf7b43304 Mon Sep 17 00:00:00 2001 From: Damien Date: Fri, 28 May 2010 00:42:52 +0800 Subject: [PATCH] Use rails 3 style runner --- lib/whenever/job_types/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/whenever/job_types/runner.rb b/lib/whenever/job_types/runner.rb index edbb4f0..3d73e03 100644 --- a/lib/whenever/job_types/runner.rb +++ b/lib/whenever/job_types/runner.rb @@ -4,7 +4,7 @@ module Whenever def output path_required - %Q(cd #{File.join(@path)} && script/runner -e #{@environment} #{task.inspect}) + %Q(cd #{File.join(@path)} && bundle exec rails runner -e #{@environment} #{task.inspect}) end end