From 8565a6547cd3cea3a1b89cabfd4909c1d82c4555 Mon Sep 17 00:00:00 2001 From: Javan Makhmali Date: Fri, 11 Jun 2010 11:35:00 -0400 Subject: [PATCH] require rakefile again --- lib/whenever.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/whenever.rb b/lib/whenever.rb index 2f81fae..59e2fce 100644 --- a/lib/whenever.rb +++ b/lib/whenever.rb @@ -1,11 +1,11 @@ require 'chronic' -# # Hoping to load Rails' Rakefile -# begin -# load 'Rakefile' -# rescue LoadError -# nil -# end +# Hoping to load Rails' Rakefile +begin + load 'Rakefile' +rescue LoadError + nil +end # If Rails' rakefile was loaded than so was active_support, but # if this is being used in a non-rails enviroment we need to require it.