From 03980b2a0e7797d8e24b9fb6ebd96693bc95b326 Mon Sep 17 00:00:00 2001 From: Tony Novak Date: Wed, 10 Feb 2016 13:02:18 -0500 Subject: Converting backtrace to strings before calling set_backtrace Fixes #23058 --- activesupport/lib/active_support/deprecation/behaviors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/deprecation/behaviors.rb') diff --git a/activesupport/lib/active_support/deprecation/behaviors.rb b/activesupport/lib/active_support/deprecation/behaviors.rb index 0de891f1a2..dc24e2d0e1 100644 --- a/activesupport/lib/active_support/deprecation/behaviors.rb +++ b/activesupport/lib/active_support/deprecation/behaviors.rb @@ -11,7 +11,7 @@ module ActiveSupport DEFAULT_BEHAVIORS = { raise: ->(message, callstack) { e = DeprecationException.new(message) - e.set_backtrace(callstack) + e.set_backtrace(callstack.map(&:to_s)) raise e }, -- cgit v1.2.3