Sha256: de394670bb9be8ba6bd4b316c4146a919bb7a58f2efb77a9072c1349d5915f1f
Contents?: true
Size: 918 Bytes
Versions: 2
Compression:
Stored size: 918 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_girl, 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-1.4.0 | lib/job_notifier/engine.rb |
job_notifier-1.3.0 | lib/job_notifier/engine.rb |