Sha256: 02d106d8182480825dc7d5981a6b0883063c7114c54c0435c4a24985ceba4d64
Contents?: true
Size: 559 Bytes
Versions: 3
Compression:
Stored size: 559 Bytes
Contents
require 'lograge_activejob/version' require 'lograge_activejob/log_subscriber' module LogrageActivejob module_function mattr_writer :custom_options self.custom_options = nil def custom_options(event) if @@custom_options.respond_to?(:call) @@custom_options.call(event) else @@custom_options end end def setup(app) LogrageActivejob.custom_options = app.config.lograge_activejob.custom_options LogrageActivejob::LogSubscriber.attach_to :active_job end end require 'lograge_activejob/railtie' if defined?(Rails)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lograge_activejob-0.3.0 | lib/lograge_activejob.rb |
lograge_activejob-0.2.0 | lib/lograge_activejob.rb |
lograge_activejob-0.1.0 | lib/lograge_activejob.rb |