From b22845cba66de76eba7964d84b6199e5ce2e08e5 Mon Sep 17 00:00:00 2001 From: Marc Date: Sat, 17 Sep 2016 12:38:48 +0200 Subject: [PATCH] deprecate need to config your app name. Instead of `::Application.load_tasks` the same can be achieved by `Rails.app_class.load_tasks`, therefore not requiring the user to configure the AppName. Less margin for errors :) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1ad428..3883725 100644 --- a/README.md +++ b/README.md @@ -76,8 +76,8 @@ Here's an example of a Rake Task within a job: ```ruby # config/cronotab.rb require 'rake' -# Be sure to change AppName to your application name! -AppName::Application.load_tasks + +Rails.app_class.load_tasks class Test def perform