Sha256: 036d879892b909e317fd0c86c943137abc887f05a4a4132f612b35374b9717cd
Contents?: true
Size: 476 Bytes
Versions: 9
Compression:
Stored size: 476 Bytes
Contents
# frozen_string_literal: true module Katalyst module Navigation module Editor class NewItemsComponent < BaseComponent include ::Turbo::FramesHelper renders_many :items, Editor::NewItemComponent def items Katalyst::Navigation.config.items.map do |item_class| item_class = item_class.safe_constantize if item_class.is_a?(String) item_class.new(menu:) end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems