Sha256: 8ffc02497fba7762ef7154f096271ffd8d7b8fc9f5715d43c792a22e9cd3dea8

Contents?: true

Size: 751 Bytes

Versions: 2

Compression:

Stored size: 751 Bytes

Contents

# frozen_string_literal: true

require "rails/engine"

module Primer
  module ViewComponents
    # :nodoc:
    class Engine < ::Rails::Engine
      isolate_namespace Primer::ViewComponents
      config.eager_load_paths = %W[
        #{root}/app/components
        #{root}/app/lib
      ]

      config.primer_view_components = ActiveSupport::OrderedOptions.new

      config.primer_view_components.force_functional_colors = true
      config.primer_view_components.force_system_arguments = false
      config.primer_view_components.silence_deprecations = false

      initializer "primer_view_components.assets" do |app|
        app.config.assets.precompile += %w[primer_view_components] if app.config.respond_to?(:assets)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
primer_view_components-0.0.57 lib/primer/view_components/engine.rb
primer_view_components-0.0.56 lib/primer/view_components/engine.rb