diff options
author | José Valim <jose.valim@gmail.com> | 2009-12-25 23:37:16 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-12-26 14:11:04 +0100 |
commit | c86424a72d229c519179a6cdf1d37e93b46e1e38 (patch) | |
tree | a871abfe4d8064f48744ce75e59e3fc7eebbcb52 /actionpack/lib/action_view/template.rb | |
parent | 48273a44c6176b72e432f365c7905fd8c4d4b754 (diff) | |
download | rails-c86424a72d229c519179a6cdf1d37e93b46e1e38.tar.gz rails-c86424a72d229c519179a6cdf1d37e93b46e1e38.tar.bz2 rails-c86424a72d229c519179a6cdf1d37e93b46e1e38.zip |
Break instrumentation into several end-points so rendering of partials can be optimized.
Diffstat (limited to 'actionpack/lib/action_view/template.rb')
-rw-r--r-- | actionpack/lib/action_view/template.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb index d46c989d11..adaf6544a7 100644 --- a/actionpack/lib/action_view/template.rb +++ b/actionpack/lib/action_view/template.rb @@ -36,10 +36,8 @@ module ActionView end def render(view, locals, &block) - ActiveSupport::Notifications.instrument(:render_template, :identifier => identifier) do - method_name = compile(locals, view) - view.send(method_name, locals, &block) - end + method_name = compile(locals, view) + view.send(method_name, locals, &block) rescue Exception => e if e.is_a?(Template::Error) e.sub_template_of(self) |