Sha256: a444e4639139261fe26c9f547821b40629d74ab71eb25f29f06f44fe6bf16e1f

Contents?: true

Size: 274 Bytes

Versions: 15

Compression:

Stored size: 274 Bytes

Contents

<% collection.each do |item| -%>
<% view_model = view_model_for item -%>
<%- options = (template_format ? { :format => template_format } : {}) -%>
<%= view_model.render_as template_name, options -%>
<%= separator || '\n' unless item == collection.entries.last -%>
<% end -%>

Version data entries

15 entries across 9 versions & 1 rubygems

Version Path
view_models-2.0.1 lib/rails2/generators/view_models/templates/views/view_models/collection/_list.text.erb
view_models-2.0.0.ruby19 lib/rails2/generators/view_models/templates/views/view_models/collection/_list.text.erb
view_models-2.0.0 lib/rails2/generators/view_models/templates/views/view_models/collection/_list.text.erb
view_models-1.5.7 spec/integration/views/view_models/collection/_list.text.erb
view_models-1.5.7 generators/view_models/templates/views/view_models/collection/_list.text.erb
view_models-1.5.6 spec/integration/views/view_models/collection/_list.text.erb
view_models-1.5.6 generators/view_models/templates/views/view_models/collection/_list.text.erb
view_models-1.5.5 spec/integration/views/view_models/collection/_list.text.erb
view_models-1.5.5 generators/view_models/templates/views/view_models/collection/_list.text.erb
view_models-1.5.4 spec/integration/views/view_models/collection/_list.text.erb
view_models-1.5.4 generators/view_models/templates/views/view_models/collection/_list.text.erb
view_models-1.5.3 spec/integration/views/view_models/collection/_list.text.erb
view_models-1.5.3 generators/view_models/templates/views/view_models/collection/_list.text.erb
view_models-1.5.2 generators/view_models/templates/views/view_models/collection/_list.text.erb
view_models-1.5.2 spec/integration/views/view_models/collection/_list.text.erb