Skip to content

Instantly share code, notes, and snippets.

@mipearson
Created November 10, 2011 23:04
Show Gist options
  • Save mipearson/1356558 to your computer and use it in GitHub Desktop.
Save mipearson/1356558 to your computer and use it in GitHub Desktop.
diff --git a/lib/new_relic/control/frameworks/rails3.rb b/lib/new_relic/control/
index f09cbf1..0199070 100644
--- a/lib/new_relic/control/frameworks/rails3.rb
+++ b/lib/new_relic/control/frameworks/rails3.rb
@@ -20,7 +20,9 @@ module NewRelic
def root
value = ::Rails.root.to_s
if value.empty?
- super
+ ActiveSupport::Deprecation.silence do
+ super
+ end
else
value
end
@mipearson
Copy link
Author

Fork available at http://github.com/mipearson/rpm as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment