Sha256: c11ef862637ac287f98a99c23598e44eff96fe1c9530464ba3c1f67e672466b7

Contents?: true

Size: 737 Bytes

Versions: 4

Compression:

Stored size: 737 Bytes

Contents

module DeliveryUncle
  class Engine < ::Rails::Engine
    isolate_namespace DeliveryUncle

    config.autoload_paths << File.expand_path("../app/workers", __FILE__)
    config.autoload_paths << File.expand_path("../app/services", __FILE__)

    config.generators do |g|
      g.test_framework :rspec, fixture: false
      g.fixture_replacement :factory_girl, dir: 'spec/factories'
      g.assets false
      g.helper false
      g.factory_girl dir: 'spec/factories'
    end
    
    initializer "static assets" do |app|
      app.middleware.use ::ActionDispatch::Static, "#{root}/public"
    end
    
    config.after_initialize do
      require_dependency root.join('app/models/delivery_uncle/email_request.rb').to_s
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
delivery_uncle-0.1.5 lib/delivery_uncle/engine.rb
delivery_uncle-0.1.4 lib/delivery_uncle/engine.rb
delivery_uncle-0.1.3 lib/delivery_uncle/engine.rb
delivery_uncle-0.1.2 lib/delivery_uncle/engine.rb