lib/phlex/rails/unbuffered_overrides.rb in phlex-rails-0.8.0 vs lib/phlex/rails/unbuffered_overrides.rb in phlex-rails-0.8.1

- old
+ new

@@ -6,10 +6,14 @@ __class__.define_method(name) do |*a, **k, &b| @object.capture do if b @object.public_send(name, *a, **k) do |*aa| - @object.helpers.capture(*aa, &b) + if aa.length == 1 && aa[0].is_a?(Phlex::SGML) + @object.helpers.capture(aa[0].unbuffered, &b) + else + @object.helpers.capture(*aa, &b) + end end else @object.public_send(name, *a, **k) end end