app/helpers/styleus_representer_helper.rb in styleus-0.0.7 vs app/helpers/styleus_representer_helper.rb in styleus-0.0.8

- old
+ new

@@ -5,11 +5,11 @@ def _component_index(headline, components) _render_styleus('component_index', locals: { headline: headline, components: components }) end - def _article(options, &block) - _render_styleus('article', locals: { headline: options[:headline], id: options[:id] }, &block) + def _article(component, &block) + _render_styleus('article', locals: { headline: component.headline, id: component.id, component: component }, &block) end def _component(classes, &block) _render_styleus('component', locals: { classes: classes }, &block) end \ No newline at end of file