module Katgut
  class Engine < ::Rails::Engine
    isolate_namespace Katgut

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

    initializer "static assets" do |app|
      app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
    end
  end
end

module Katgut
  class Engine < ::Rails::Engine
    isolate_namespace Katgut

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

Remove unnecessary settings for loading of static assets
Remove unnecessary settings for loading of static assets

* It brokes 'rake assets:precompile' when the host app
  is set not to serve static assets
