aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorNikolay Shebanov <nikolay.shebanov@gmail.com>2013-02-22 02:22:27 +0400
committerNikolay Shebanov <nikolay.shebanov@gmail.com>2013-02-25 20:03:37 +0400
commit371a5f2d73f73243ec2440305fdfab64088f35a3 (patch)
treec3742e788758fe147180351eceb5aeafde94ba03 /actionpack/lib/action_view/helpers
parentb4051edf841c8a6780df9af7afa9892bfd811c79 (diff)
downloadrails-371a5f2d73f73243ec2440305fdfab64088f35a3.tar.gz
rails-371a5f2d73f73243ec2440305fdfab64088f35a3.tar.bz2
rails-371a5f2d73f73243ec2440305fdfab64088f35a3.zip
Fix #9360 regression in content_for
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/capture_helper.rb2
1 files changed, 1 insertions, 1 deletions
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