Sha256: 3b0d909b862e864d524b20ad810aabe8c3c0ad76bad0dc77b8a09f46171eb4cb
Contents?: true
Size: 591 Bytes
Versions: 16
Compression:
Stored size: 591 Bytes
Contents
<% object ||= current_attributes_object %> <% strategy ||= current_attributes_strategy || :none %> <% url ||= nil %> <% if object.public_send(attribute).present? %> <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %> <% if object.send(attribute).is_a?(ActionText::RichText) %> <%= html_sanitize(object.public_send(attribute).body.to_s).html_safe %> <% else %> <% # `.to_s` is for action text. %> <%= html_sanitize(object.public_send(attribute).to_s).html_safe %> <% end %> <% end %> <% end %>
Version data entries
16 entries across 16 versions & 1 rubygems