Sha256: 7e5ad5b61d2f744c6b29cdf58f13bc47cb35090123350c55ec13620e2120e8cd

Contents?: true

Size: 202 Bytes

Versions: 3

Compression:

Stored size: 202 Bytes

Contents

<% if value.is_a?(Array) %>
  <% value.sort.each_with_index do |each_value, index| %>
    <%= each_value %>
    <%= index < value.size - 1 ? '|' : nil %>
  <% end %>
<% else %>
  <%= value %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_element-0.0.14 app/views/active_element/components/table/_field.html.erb
active_element-0.0.13 app/views/active_element/components/table/_field.html.erb
active_element-0.0.12 app/views/active_element/components/table/_field.html.erb