Skip to content

Commit

Permalink
Revert "Fix tests and suppress warning for Rails 3 views."
Browse files Browse the repository at this point in the history
This reverts commit d1e5569.
  • Loading branch information
gnarg committed Aug 25, 2011
1 parent 9e12b08 commit 5724031
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -39,11 +39,7 @@ def process_action(*args)

module ActionView
def _render_template(template, layout = nil, options = {}) #:nodoc:
if template.respond_to?(:virtual_path)
NewRelic::Agent.trace_execution_scoped "View/#{template.virtual_path}/Rendering" do
super
end
else
NewRelic::Agent.trace_execution_scoped "View/#{template.virtual_path}/Rendering" do
super
end
end
Expand Down Expand Up @@ -95,7 +91,6 @@ class ActionView::Base
include NewRelic::Agent::Instrumentation::Rails3::ActionView
end
old_klass = ActionView::Partials::PartialRenderer
ActionView::Partials.send :remove_const, :PartialRenderer
ActionView::Partials::PartialRenderer = Class.new(old_klass)
class ActionView::Partials::PartialRenderer
def render_partial(*args)
Expand Down

0 comments on commit 5724031

Please sign in to comment.