Sha256: 68b544e90176c49c557e35b405246032a5ac097eaea1892b4113107c4ba53e91

Contents?: true

Size: 670 Bytes

Versions: 1

Compression:

Stored size: 670 Bytes

Contents

require 'sidekiq'

module AsyncRequest
  class Engine < ::Rails::Engine
    isolate_namespace AsyncRequest

    initializer 'async_request', before: :load_config_initializers do |app|
      Rails.application.routes.append do
        mount AsyncRequest::Engine, at: '/async_request', as: 'async_request'
      end

      unless app.root.to_s.match root.to_s
        config.paths['db/migrate'].expanded.each do |expanded_path|
          Rails.application.config.paths['db/migrate'] << expanded_path
        end
      end
    end

    config.generators do |g|
      g.test_framework :rspec
      g.fixture_replacement :factory_girl, dir: 'spec/factories'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
async_request-1.0.0 lib/async_request/engine.rb