Sha256: f2329abed65e84cecea059a459f342fa343946d1f665792917922390d8f5d466
Contents?: true
Size: 600 Bytes
Versions: 29
Compression:
Stored size: 600 Bytes
Contents
<% object ||= current_attributes_object %> <% strategy ||= current_attributes_strategy || :none %> <% url ||= nil %> <% if object.send(attribute).any? %> <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %> <%# TODO: Multiple option partials return arrays with blank characters in them. Is this expected? %> <%= object.send(attribute).reject(&:blank?).map do |value| %> <% t("#{object.class.name.underscore.pluralize}.fields.#{attribute}.options.#{value}") %> <% end.map(&:strip).to_sentence %> <% end %> <% end %>
Version data entries
29 entries across 29 versions & 1 rubygems