Sha256: 291287e99a732c16896420c9beb77561b71e023f08c40e679841479e6b1a9ab7
Contents?: true
Size: 890 Bytes
Versions: 1
Compression:
Stored size: 890 Bytes
Contents
# frozen_string_literal: true require 'rails/engine' module Lite module Component class Engine < ::Rails::Engine isolate_namespace Lite::Component initializer('lite-frontend.setup', group: :all) do |app| app.paths['config'] << File.join(config.root, 'app') app.paths['config'] << File.join(config.root, 'vendor') end initializer('lite-component.asset_path') do |app| app.config.assets.paths << Lite::Component.path if app.config.respond_to?(:assets) end initializer('lite-component.view_helpers') do ActiveSupport.on_load(:action_controller) do helper Lite::Component::ComponentHelper end end initializer('lite-component.view_paths') do ActiveSupport.on_load(:action_controller) do append_view_path Lite::Component.path end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lite-component-1.0.0 | lib/lite/component/engine.rb |