lib/phlex/rails/unbuffered_overrides.rb in phlex-rails-0.8.1 vs lib/phlex/rails/unbuffered_overrides.rb in phlex-rails-0.9.0
- old
+ new
@@ -6,14 +6,10 @@
__class__.define_method(name) do |*a, **k, &b|
@object.capture do
if b
@object.public_send(name, *a, **k) do |*aa|
- if aa.length == 1 && aa[0].is_a?(Phlex::SGML)
- @object.helpers.capture(aa[0].unbuffered, &b)
- else
- @object.helpers.capture(*aa, &b)
- end
+ @object.helpers.capture(*aa, &b)
end
else
@object.public_send(name, *a, **k)
end
end