lib/good_job/job.rb in good_job-1.11.2 vs lib/good_job/job.rb in good_job-1.11.3

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true module GoodJob # ActiveRecord model that represents an +ActiveJob+ job. # Parent class can be configured with +GoodJob.active_record_parent_class+. # @!parse # class Job < ActiveRecord::Base; end @@ -8,15 +9,15 @@ # Raised if something attempts to execute a previously completed Job again. PreviouslyPerformedError = Class.new(StandardError) # ActiveJob jobs without a +queue_name+ attribute are placed on this queue. - DEFAULT_QUEUE_NAME = 'default'.freeze + DEFAULT_QUEUE_NAME = 'default' # ActiveJob jobs without a +priority+ attribute are given this priority. DEFAULT_PRIORITY = 0 - self.table_name = 'good_jobs'.freeze - self.advisory_lockable_column = 'id'.freeze + self.table_name = 'good_jobs' + self.advisory_lockable_column = 'id' attr_readonly :serialized_params # Parse a string representing a group of queues into a more readable data # structure.