Sha256: 72edbf6c5638fd09859c80aa201fbab404ebf803eea791faf87ff76ec4eeaccd

Contents?: true

Size: 838 Bytes

Versions: 1

Compression:

Stored size: 838 Bytes

Contents

module Olivander
  class Engine < ::Rails::Engine
    isolate_namespace Olivander

    initializer "olivander.assets.precompile" do |app|
      app.config.assets.precompile += %w[
        adminlte.js
        auto_select2.js
        datatable_index_charts_controller.js
        datatable_expandable_chart_controller.js
        turbo_flash_controller.js
        modal_controller.js
        lightbox_image_controller.js
        adminlte.css avatar0.png avatar1.png avatar2.png avatar3.png avatar4.png]
    end

    initializer "olivander.action_controller" do |app|
      ActiveSupport.on_load :action_controller do
        helper Olivander::ApplicationHelper
      end
    end

    initializer "olivander.importmap", before: "importmap" do |app|
      app.config.importmap.paths << Engine.root.join('config/importmap.rb')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
five-two-nw-olivander-0.2.0.24 lib/olivander/engine.rb