Class: ApplicationJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- ApplicationJob
- Includes:
- App47Logger
- Defined in:
- lib/app/jobs/application_job.rb
Overview
Base application job that all jobs extend from
Direct Known Subclasses
Class Method Summary collapse
-
.valid_environment? ⇒ Boolean
Is this job in a valid environment.
-
.valid_environments ⇒ Object
If this job should run in this current environment, defaults to true.
Methods included from App47Logger
clean_params, #clean_params, delete_parameter_keys, #log_controller_error, log_debug, #log_debug, log_error, #log_error, log_exception, #log_message, log_message, #log_warn, log_warn, mask_parameter_keys, #update_flash_messages
Class Method Details
.valid_environment? ⇒ Boolean
Is this job in a valid environment
19 20 21 22 |
# File 'lib/app/jobs/application_job.rb', line 19 def self.valid_environment? my_environments = valid_environments (my_environments.empty? || my_environments.include?(Rails.env)) end |
.valid_environments ⇒ Object
If this job should run in this current environment, defaults to true
12 13 14 |
# File 'lib/app/jobs/application_job.rb', line 12 def self.valid_environments [] end |