Sha256: e433af6678c2168f1f992d8fa83b77ac1399091b0f34c1b5e730944d6ab6127a
Contents?: true
Size: 1009 Bytes
Versions: 10
Compression:
Stored size: 1009 Bytes
Contents
# frozen_string_literal: true require "rails" module Katalyst module Kpop class Engine < ::Rails::Engine config.autoload_once_paths = %W(#{root}/app/helpers) initializer "kpop.helpers", before: :load_config_initializers do ActiveSupport.on_load(:action_controller_base) do helper Katalyst::Kpop::Engine.helpers end ActiveSupport.on_load(:action_view_base) do helper Katalyst::Kpop::Engine.helpers end end initializer "kpop.assets" do config.after_initialize do |app| if app.config.respond_to?(:assets) app.config.assets.precompile += %w(kpop.js) end end end initializer "kpop.importmap", before: "importmap" do |app| if app.config.respond_to?(:importmap) app.config.importmap.paths << root.join("config/importmap.rb") app.config.importmap.cache_sweepers << root.join("app/assets/javascripts") end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems