Sha256: e8c58d273612ac7ad124842f7a95e5cb4b6f7bc29a771ebf2fed1fa400a9c62e

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 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, JobNotifier::Logger)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
job_notifier-1.1.0 lib/job_notifier/engine.rb