Sha256: 50319475a159a8a0fa12f0bd2e21333c47d331922ba9de032b9f5fbca8bcf52e
Contents?: true
Size: 636 Bytes
Versions: 22
Compression:
Stored size: 636 Bytes
Contents
module Plutonium module Core module Fields module Renderers class AssociationRenderer < Base attr_reader :reflection def initialize(name, reflection:, **user_options) @reflection = reflection super(name, **user_options) end def render display_field value:, **options end private def renderer_options { # helper: value.class.include?(Plutonium: :Resource: :Record) ? :display_association_value : :display_name_of } end end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems