deprecate need to config your app name.

Instead of `<AppName>::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 :)
This commit is contained in:
Marc
2016-09-17 12:38:48 +02:00
committed by GitHub
parent 77481f1143
commit b22845cba6

View File

@@ -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