Sha256: 6bb002dcde5ced1fbdc836893fc1047f2bb25063779a70d2a7395095128be35e

Contents?: true

Size: 384 Bytes

Versions: 166

Compression:

Stored size: 384 Bytes

Contents

ruby:
  tuples = Array.wrap(attributes).map do |attribute|
    label = model.class.human_attribute_name(attribute)
    value = model.public_send(attribute)
    html = if value.respond_to?(:nested_attribute?)
             render(value)
           else
             Presenter.for(value).to_s
           end
    [label, html]
  end

- tuples.each do |label, html|
  dt= label
  dd= html

Version data entries

166 entries across 166 versions & 1 rubygems

Version Path
renalware-core-2.0.18 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.17 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.16 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.15 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.14 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.13 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.12 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.11 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.9 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.8 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.7 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.5 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.4 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.3 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.2 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.1 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.0 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.0.pre.rc13 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.0.pre.rc11 app/views/renalware/shared/_attributes_list.html.slim
renalware-core-2.0.0.pre.rc10 app/views/renalware/shared/_attributes_list.html.slim