Sha256: b5c580cf0fa8af7100b08312ef27fe2545089e1f1c408e63e1065367277d038f

Contents?: true

Size: 754 Bytes

Versions: 14

Compression:

Stored size: 754 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.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

14 entries across 14 versions & 1 rubygems

Version Path
primer_view_components-0.0.55 lib/primer/view_components/engine.rb
primer_view_components-0.0.54 lib/primer/view_components/engine.rb
primer_view_components-0.0.53 lib/primer/view_components/engine.rb
primer_view_components-0.0.52 lib/primer/view_components/engine.rb
primer_view_components-0.0.51 lib/primer/view_components/engine.rb
primer_view_components-0.0.50 lib/primer/view_components/engine.rb
primer_view_components-0.0.49 lib/primer/view_components/engine.rb
primer_view_components-0.0.48 lib/primer/view_components/engine.rb
primer_view_components-0.0.47 lib/primer/view_components/engine.rb
primer_view_components-0.0.46 lib/primer/view_components/engine.rb
primer_view_components-0.0.45 lib/primer/view_components/engine.rb
primer_view_components-0.0.44 lib/primer/view_components/engine.rb
primer_view_components-0.0.43 lib/primer/view_components/engine.rb
primer_view_components-0.0.42 lib/primer/view_components/engine.rb