From 371a5f2d73f73243ec2440305fdfab64088f35a3 Mon Sep 17 00:00:00 2001 From: Nikolay Shebanov Date: Fri, 22 Feb 2013 02:22:27 +0400 Subject: Fix #9360 regression in content_for --- actionpack/lib/action_view/helpers/capture_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_view/helpers/capture_helper.rb b/actionpack/lib/action_view/helpers/capture_helper.rb index 4ec860d69a..1bad82159a 100644 --- a/actionpack/lib/action_view/helpers/capture_helper.rb +++ b/actionpack/lib/action_view/helpers/capture_helper.rb @@ -156,7 +156,7 @@ module ActionView end nil else - @view_flow.get(name) + @view_flow.get(name).presence end end -- cgit v1.2.3