lib/spontaneous/model/core/render.rb in spontaneous-0.2.0.beta4 vs lib/spontaneous/model/core/render.rb in spontaneous-0.2.0.beta5

- old
+ new

@@ -7,15 +7,15 @@ def output(format = :html) return page.output(format, self) if page raise "Cannot render content without enclosing page" end - def render(format = :html, params = {}, *args) + def render(format = :html, params = {}, parent_context = nil) params, format = format, :html if format.is_a?(Hash) - output(format).render(params, *args) + output(format).render(params, parent_context) end - def render_using(renderer, format = :html, params = {}, *args) - output(format).render_using(renderer, params, *args) + def render_using(renderer, format = :html, params = {}, parent_context = nil) + output(format).render_using(renderer, params, parent_context) end end end