lib/active_job/retry.rb in activejob-retry-0.6.0 vs lib/active_job/retry.rb in activejob-retry-0.6.1
- old
+ new
@@ -42,9 +42,11 @@
'and `retry_delay(attempt, exception)`.'
end
end
def included(base)
+ klass = self
+ base.define_singleton_method(:inherited) { |subclass| subclass.include(klass) }
define_backoff_strategy(base)
define_retry_attempt_tracking(base)
define_retry_method(base)
define_retry_logic(base)
end