lib/deas-erubis/template_helpers.rb in deas-erubis-0.2.0 vs lib/deas-erubis/template_helpers.rb in deas-erubis-0.3.0

- old
+ new

@@ -9,15 +9,15 @@ receiver.class_eval{ include Methods } end module Methods - def partial(*args) - @deas_source.partial(*args) + def partial(n, l = nil) + @deas_source.partial(n, l || {}) end - def capture_partial(*args, &content) - _erb_buffer @deas_source.partial(*args, &Proc.new{ _erb_capture(&content) }) + def capture_partial(n, l = nil, &c) + _erb_buffer @deas_source.partial(n, l || {}, &Proc.new{ _erb_capture(&c) }) end private def _erb_capture(&content)