Set default directly with default:

This commit is contained in:
Kasper Timm Hansen 2019-12-13 02:09:08 +01:00
parent 5ded839cfb
commit ff299f1741
No known key found for this signature in database
GPG Key ID: 191153215EDA53D8
1 changed files with 1 additions and 2 deletions

View File

@ -8,8 +8,7 @@ module ActiveJob
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do included do
class_attribute :retry_jitter, instance_accessor: false, instance_predicate: false class_attribute :retry_jitter, instance_accessor: false, instance_predicate: false, default: 0.15
self.retry_jitter = 0.15
end end
module ClassMethods module ClassMethods