mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-27 03:09:02 +02:00
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:
@@ -76,8 +76,8 @@ Here's an example of a Rake Task within a job:
|
|||||||
```ruby
|
```ruby
|
||||||
# config/cronotab.rb
|
# config/cronotab.rb
|
||||||
require 'rake'
|
require 'rake'
|
||||||
# Be sure to change AppName to your application name!
|
|
||||||
AppName::Application.load_tasks
|
Rails.app_class.load_tasks
|
||||||
|
|
||||||
class Test
|
class Test
|
||||||
def perform
|
def perform
|
||||||
|
|||||||
Reference in New Issue
Block a user