Sha256: 6f340a55033cee26d593f9a2d3c63c999494d7c52639abe635e2334215f04141
Contents?: true
Size: 356 Bytes
Versions: 11
Compression:
Stored size: 356 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
11 entries across 11 versions & 1 rubygems