Sha256: cb07b5923e4fd544fd018726f727c89b5abf34ed71ba5b435444ef44a4fb4041
Contents?: true
Size: 917 Bytes
Versions: 2
Compression:
Stored size: 917 Bytes
Contents
module JobNotifier class Engine < ::Rails::Engine isolate_namespace JobNotifier config.generators do |g| g.test_framework :rspec, fixture: false g.fixture_replacement :factory_bot, dir: "spec/factories" end config.serve_static_files = true initializer "initialize" do require_relative "./error" require_relative "./notifier" require_relative "./identifier" require_relative "./adapters" require_relative "./logger" ActiveSupport.on_load :action_controller do helper(JobNotifier::ApplicationHelper) end if JobNotifier.silenced_log Rails.application.middleware.swap( Rails::Rack::Logger, Silencer::Logger, silence: [%r{\/job_notifier\/\w+\/jobs\/\w+.json}] ) Rails.application.middleware.insert_before(Silencer::Logger, JobNotifier::Logger) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
job_notifier-2.0.0 | lib/job_notifier/engine.rb |
job_notifier-1.5.0 | lib/job_notifier/engine.rb |