Sha256: d9da186f2f52651d2ac228a84042af43bb9552fd3224ad6603bb9bf570e74aa1

Contents?: true

Size: 269 Bytes

Versions: 15

Compression:

Stored size: 269 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 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/_collection.text.erb
view_models-2.0.0.ruby19 lib/rails2/generators/view_models/templates/views/view_models/collection/_collection.text.erb
view_models-2.0.0 lib/rails2/generators/view_models/templates/views/view_models/collection/_collection.text.erb
view_models-1.5.7 spec/integration/views/view_models/collection/_collection.text.erb
view_models-1.5.7 generators/view_models/templates/views/view_models/collection/_collection.text.erb
view_models-1.5.6 spec/integration/views/view_models/collection/_collection.text.erb
view_models-1.5.6 generators/view_models/templates/views/view_models/collection/_collection.text.erb
view_models-1.5.5 spec/integration/views/view_models/collection/_collection.text.erb
view_models-1.5.5 generators/view_models/templates/views/view_models/collection/_collection.text.erb
view_models-1.5.4 spec/integration/views/view_models/collection/_collection.text.erb
view_models-1.5.4 generators/view_models/templates/views/view_models/collection/_collection.text.erb
view_models-1.5.3 spec/integration/views/view_models/collection/_collection.text.erb
view_models-1.5.3 generators/view_models/templates/views/view_models/collection/_collection.text.erb
view_models-1.5.2 generators/view_models/templates/views/view_models/collection/_collection.text.erb
view_models-1.5.2 spec/integration/views/view_models/collection/_collection.text.erb