views/mdc/components/render.erb in voom-presenters-0.2.0 vs views/mdc/components/render.erb in voom-presenters-2.0.0
- old
+ new
@@ -1,4 +1,3 @@
<% components.each_with_index do |comp, index| %>
- <%= erb :"components#{scope ? "/#{scope}" : nil}/#{comp.type}", :locals => {comp: comp,
- components: components, index: index} %>
-<% end %>
\ No newline at end of file
+ <%= render_component(scope, comp, components, index) %>
+<% end %>