Sha256: f5927418df5c76ea05fbdd3186d16e37dc29209f2ef5c3e28d95183d22c7e258
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true require 'rails/engine' require 'dry-initializer' module ActionLink # :nodoc: class Engine < ::Rails::Engine isolate_namespace ActionLink config.to_prepare do # Our ActionLink components are subclasses of `ViewComponent::Base`. # When `ViewComponent::Base` is subclassed, two things happen: # # 1. Rails routes are included into the component # 2. The ViewComponent configuration is accessed # # So we can only require our components, once Rails has booted # AND the view_component gem has been fully initialized (configured). # # That's right here and now. require_relative '../../app/components/action_link/application_component' require_relative '../../app/components/action_link/base' require_relative '../../app/components/action_link/destroy' require_relative '../../app/components/action_link/edit' require_relative '../../app/components/action_link/new' require_relative '../../app/components/action_link/show' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
action_link-0.1.1 | lib/action_link/engine.rb |