lib/rafters/component_renderer.rb in rafters-0.0.2 vs lib/rafters/component_renderer.rb in rafters-0.0.3

- old
+ new

@@ -10,11 +10,11 @@ def render(component, template_name = nil) component.controller = @controller template_name = (template_name || component.template_name) - @controller.view_context.render(file: "/#{template_name}", locals: { - settings: component.settings, - attributes: component.attributes + @controller.view_context.render({ + file: "/#{template_name}", + locals: component.attributes }) end end