From 0114dc38d5cfc347fdbbd9a9bf5e0226a5a4ed0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 16 Apr 2011 12:25:21 +0200 Subject: Fix CI test on 1.8 --- actionpack/lib/action_view/renderer/streaming_template_renderer.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_view/renderer/streaming_template_renderer.rb b/actionpack/lib/action_view/renderer/streaming_template_renderer.rb index acc84a50e7..52f0e9f5bd 100644 --- a/actionpack/lib/action_view/renderer/streaming_template_renderer.rb +++ b/actionpack/lib/action_view/renderer/streaming_template_renderer.rb @@ -1,4 +1,7 @@ -require 'fiber' +# 1.9 ships with Fibers but we need to require the extra +# methods explicitly. We only load those extra methods if +# Fiber is available in the first place. +require 'fiber' if defined?(Fiber) module ActionView # Consider the following layout: -- cgit v1.2.3