aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view
diff options
context:
space:
mode:
authorNikolay Shebanov <nikolay.shebanov@gmail.com>2014-12-09 01:13:40 +0100
committerNikolay Shebanov <nikolay.shebanov@gmail.com>2014-12-19 13:52:12 +0100
commitf02a35b86efea24f1e2ab684bc8081ced5eb3b1a (patch)
treeb971a3794c350f209aba4ba2a8bdc3433f317120 /actionview/lib/action_view
parent10e989b76df1a833f9da22598c1a368777374a01 (diff)
downloadrails-f02a35b86efea24f1e2ab684bc8081ced5eb3b1a.tar.gz
rails-f02a35b86efea24f1e2ab684bc8081ced5eb3b1a.tar.bz2
rails-f02a35b86efea24f1e2ab684bc8081ced5eb3b1a.zip
Make possible to use blocks with short version of render partial
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r--actionview/lib/action_view/helpers/rendering_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/rendering_helper.rb b/actionview/lib/action_view/helpers/rendering_helper.rb
index e11670e00d..827932d8e2 100644
--- a/actionview/lib/action_view/helpers/rendering_helper.rb
+++ b/actionview/lib/action_view/helpers/rendering_helper.rb
@@ -32,7 +32,7 @@ module ActionView
view_renderer.render(self, options)
end
else
- view_renderer.render_partial(self, :partial => options, :locals => locals)
+ view_renderer.render_partial(self, :partial => options, :locals => locals, &block)
end
end