aboutsummaryrefslogtreecommitdiffstats
path: root/activejob
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2018-10-05 16:42:27 -0400
committerJeremy Daer <jeremydaer@gmail.com>2018-10-05 14:51:41 -0700
commit1042950b34fe14deb1ba538ed84bf6c9a08f57d7 (patch)
treea360e0449805343b76d88a6f795c06859bfbffa5 /activejob
parented744a159fec1f8919ddf9f2874f3d7eed8e5a70 (diff)
downloadrails-1042950b34fe14deb1ba538ed84bf6c9a08f57d7.tar.gz
rails-1042950b34fe14deb1ba538ed84bf6c9a08f57d7.tar.bz2
rails-1042950b34fe14deb1ba538ed84bf6c9a08f57d7.zip
Remove unnecessary use of `included` in ActiveJob::Core
Using `included` to define `attr_acessor` and `attr_writer` is causing these methods to not show up in the documentation.
Diffstat (limited to 'activejob')
-rw-r--r--activejob/lib/active_job/core.rb40
1 files changed, 19 insertions, 21 deletions
diff --git a/activejob/lib/active_job/core.rb b/activejob/lib/active_job/core.rb
index 61d402cfca..62bb5861bb 100644
--- a/activejob/lib/active_job/core.rb
+++ b/activejob/lib/active_job/core.rb
@@ -6,35 +6,33 @@ module ActiveJob
module Core
extend ActiveSupport::Concern
- included do
- # Job arguments
- attr_accessor :arguments
- attr_writer :serialized_arguments
+ # Job arguments
+ attr_accessor :arguments
+ attr_writer :serialized_arguments
- # Timestamp when the job should be performed
- attr_accessor :scheduled_at
+ # Timestamp when the job should be performed
+ attr_accessor :scheduled_at
- # Job Identifier
- attr_accessor :job_id
+ # Job Identifier
+ attr_accessor :job_id
- # Queue in which the job will reside.
- attr_writer :queue_name
+ # Queue in which the job will reside.
+ attr_writer :queue_name
- # Priority that the job will have (lower is more priority).
- attr_writer :priority
+ # Priority that the job will have (lower is more priority).
+ attr_writer :priority
- # ID optionally provided by adapter
- attr_accessor :provider_job_id
+ # ID optionally provided by adapter
+ attr_accessor :provider_job_id
- # Number of times this job has been executed (which increments on every retry, like after an exception).
- attr_accessor :executions
+ # Number of times this job has been executed (which increments on every retry, like after an exception).
+ attr_accessor :executions
- # I18n.locale to be used during the job.
- attr_accessor :locale
+ # I18n.locale to be used during the job.
+ attr_accessor :locale
- # Timezone to be used during the job.
- attr_accessor :timezone
- end
+ # Timezone to be used during the job.
+ attr_accessor :timezone
# These methods will be included into any Active Job object, adding
# helpers for de/serialization and creation of job instances.