Sha256: 4121d7fb0a4fb4657c64b2231e2a2b872770ac5eca7fac8d107a97b551d35008

Contents?: true

Size: 648 Bytes

Versions: 5

Compression:

Stored size: 648 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"
      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

5 entries across 5 versions & 1 rubygems

Version Path
async_request-0.0.5 lib/async_request/engine.rb
async_request-0.0.4 lib/async_request/engine.rb
async_request-0.0.3 lib/async_request/engine.rb
async_request-0.0.2 lib/async_request/engine.rb
async_request-0.0.1 lib/async_request/engine.rb