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.