Sha256: 1683905694b29c06efb47f9852471a1a187b84e1165e4e24cce2fc1d8c2a2c33
Contents?: true
Size: 755 Bytes
Versions: 28
Compression:
Stored size: 755 Bytes
Contents
# frozen_string_literal: true module ActiveElement # Provides initial setup and gem integration for host Rails application. class Engine < ::Rails::Engine initializer 'active_element.precompile' do |app| next unless app.config.respond_to?(:assets) app.config.assets.precompile += %w[ active_element/manifest.js ] end initializer 'active_element.routes' do |app| app.routes.append do mount Engine => '/' end end initializer 'active_element.silence_action_view_notifications', after: 'finisher_hook' do next unless ActiveElement.silence_logging? warn '*** Rails ActionView logging events are disabled by default. Set ACTIVE_ELEMENT_DEBUG=1 to enable.' end end end
Version data entries
28 entries across 28 versions & 1 rubygems