Sha256: 8dfc24803a244c3d4b471929c38ce440b103a38fa10168423864f71c69bb1691
Contents?: true
Size: 488 Bytes
Versions: 22
Compression:
Stored size: 488 Bytes
Contents
module Spina module Hooks class PartialComponent < ApplicationComponent with_collection_parameter :plugin def initialize(plugin:, partial:) @plugin = plugin @partial = partial end def call render partial: "spina/admin/hooks/#{@plugin.namespace}/#{@partial}" end def render? helpers.lookup_context.exists? "spina/admin/hooks/#{@plugin.namespace}/_#{@partial}" end end end end
Version data entries
22 entries across 22 versions & 1 rubygems