lib/rafters/component_renderer.rb in rafters-1.0.0 vs lib/rafters/component_renderer.rb in rafters-1.1.0
- old
+ new
@@ -10,10 +10,10 @@
def render(component)
component.controller = @controller
store(component)
- @controller.view_context.content_tag(:div, class: "component", id: component.identifier) do
+ @controller.view_context.content_tag(:div, class: "component #{component.name.dasherize}", id: component.identifier) do
@controller.view_context.render(file: "/#{component.template_name}", locals: component.attributes)
end
end
private