diff options
author | Tony Novak <tony@amitree.com> | 2016-02-10 13:02:18 -0500 |
---|---|---|
committer | Tony Novak <tony@amitree.com> | 2016-02-10 13:02:18 -0500 |
commit | 03980b2a0e7797d8e24b9fb6ebd96693bc95b326 (patch) | |
tree | d4cbde83c85a954ac084532bf347515dba77c1cc /activesupport/lib/active_support/deprecation | |
parent | 688996da7b25080a1a2ef74f5b4789f3e5eb670d (diff) | |
download | rails-03980b2a0e7797d8e24b9fb6ebd96693bc95b326.tar.gz rails-03980b2a0e7797d8e24b9fb6ebd96693bc95b326.tar.bz2 rails-03980b2a0e7797d8e24b9fb6ebd96693bc95b326.zip |
Converting backtrace to strings before calling set_backtrace
Fixes #23058
Diffstat (limited to 'activesupport/lib/active_support/deprecation')
-rw-r--r-- | activesupport/lib/active_support/deprecation/behaviors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 }, |