app/helpers/styleus_representer_helper.rb in styleus-0.0.9 vs app/helpers/styleus_representer_helper.rb in styleus-0.0.10
- old
+ new
@@ -9,11 +9,11 @@
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)
+ def _component(classes, partial_path, &block)
+ _render_styleus('component', locals: { classes: classes, partial_path: partial_path }, &block)
end
def _code_note(note)
note ? _render_styleus('code_note', object: note) : _safe_empty
end
\ No newline at end of file