Sha256: 625a7f0a2d0409be800ff96655f6a7ee627a036421aa7a0e5533fc2250af5471
Contents?: true
Size: 581 Bytes
Versions: 14
Compression:
Stored size: 581 Bytes
Contents
<%# # Polymorphic Show Partial This partial renders a polymorphic relationship, to be displayed on a resource's show page. By default, the relationship is rendered as a link to the associated object. ## Local variables: - `field`: An instance of [Administrate::Field::Polymorphic][1]. A wrapper around the polymorphic belongs_to relationship pulled from the database. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Polymorphic %> <% if field.data %> <%= link_to( field.display_associated_resource, [namespace, field.data], ) %> <% end %>
Version data entries
14 entries across 14 versions & 1 rubygems