Module: ActiveJobLog
- Extended by:
- ActiveJobLog
- Included in:
- ActiveJobLog
- Defined in:
- lib/active_job_log.rb,
lib/active_job_log/engine.rb,
lib/active_job_log/log_ext.rb,
lib/active_job_log/version.rb,
lib/active_job_log/loggeable.rb,
app/jobs/active_job_log/application_job.rb,
app/models/active_job_log/application_record.rb,
app/helpers/active_job_log/application_helper.rb,
app/mailers/active_job_log/application_mailer.rb,
app/controllers/active_job_log/application_controller.rb,
lib/generators/active_job_log/install/templates/job_model.rb
Defined Under Namespace
Modules: ApplicationHelper, LogExt, Loggeable Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Engine, InstallGenerator, Job
Constant Summary collapse
- VERSION =
'1.1.0'
Instance Method Summary collapse
-
#setup {|_self| ... } ⇒ Object
You can add, in this module, your own configuration options as in the example below…
Instance Method Details
#setup {|_self| ... } ⇒ Object
You can add, in this module, your own configuration options as in the example below…
attr_writer :my_option
def my_option
return "Default Value" unless @my_option
@my_option
end
Then, you can customize the default behaviour (typically in a Rails initializer) like this:
ActiveJobLog.setup do |config|
config.root_url = "Another value"
end
22 23 24 25 |
# File 'lib/active_job_log.rb', line 22 def setup yield self require "active_job_log" end |