Closed aledustet closed 6 years ago
The issue was that the clock.rb files content was not 'namespaced':
include Clockwork
every(1.hour, ...
...
After moving it under the module the problem was solved:
module Clockwork
every(1.hour, ...
end
I'm closing it 👍
After my upgrade to rails 5.1 I am seeing this warning
When i upgrade the haml gem the template handler changes and the deprecation warning with it but it brings temple gem and with it this runtime error:
The callback method is also code. Here is the line that is throwing the error https://github.com/Rykian/clockwork/blob/v2.0.2/lib/clockwork/manager.rb#L44