Sha256: ea4135124f8bfdbad5ddf26900733c05cdbac04970aeeb4063abeddf72de057d

Contents?: true

Size: 838 Bytes

Versions: 6

Compression:

Stored size: 838 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

      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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
job_notifier-1.2.4 lib/job_notifier/engine.rb
job_notifier-1.2.3 lib/job_notifier/engine.rb
job_notifier-1.2.2 lib/job_notifier/engine.rb
job_notifier-1.2.1 lib/job_notifier/engine.rb
job_notifier-1.2.0 lib/job_notifier/engine.rb
job_notifier-1.1.1 lib/job_notifier/engine.rb