Skip to content

Instantly share code, notes, and snippets.

@dolzenko
Created November 8, 2010 17:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolzenko/668006 to your computer and use it in GitHub Desktop.
Save dolzenko/668006 to your computer and use it in GitHub Desktop.
Make deprecation messages dump full stack trace
module ActiveSupport
module Deprecation
class << self
private
def deprecation_caller_message(callstack)
"(called from #{callstack.inspect})"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment