Sha256: 405ad50e1d9af63ee8fca1ec55190a44b2ca3cac656e28d9c804d7b4f47b164f

Contents?: true

Size: 686 Bytes

Versions: 13

Compression:

Stored size: 686 Bytes

Contents

# frozen_string_literal: true

require "rails/engine"

module Primer
  module ViewComponents
    # :nodoc:
    class Engine < ::Rails::Engine
      isolate_namespace Primer::ViewComponents
      config.autoload_once_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.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

13 entries across 13 versions & 1 rubygems

Version Path
primer_view_components-0.0.41 lib/primer/view_components/engine.rb
primer_view_components-0.0.40 lib/primer/view_components/engine.rb
primer_view_components-0.0.39 lib/primer/view_components/engine.rb
primer_view_components-0.0.38 lib/primer/view_components/engine.rb
primer_view_components-0.0.37 lib/primer/view_components/engine.rb
primer_view_components-0.0.36 lib/primer/view_components/engine.rb
primer_view_components-0.0.35 lib/primer/view_components/engine.rb
primer_view_components-0.0.34 lib/primer/view_components/engine.rb
primer_view_components-0.0.33 lib/primer/view_components/engine.rb
primer_view_components-0.0.32 lib/primer/view_components/engine.rb
primer_view_components-0.0.31 lib/primer/view_components/engine.rb
primer_view_components-0.0.30 lib/primer/view_components/engine.rb
primer_view_components-0.0.29 lib/primer/view_components/engine.rb