Sha256: c32b4ad9be1ad625869ef4acaa35a0d1d5a6c0ae7d3be9f768bd27f64d3ecadd

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module FComponents
  class Engine < ::Rails::Engine
    isolate_namespace FComponents

    config.autoload_once_paths << "#{root}/app/helpers" if Rails.version.start_with?('7')

    config.app_middleware.use(
      Rack::Static,
      urls: ["/f_components"],
      root: FComponents::Engine.root.join("public")
    )

    config.generators do |g|
      g.test_framework :rspec
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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