Skip to content

Commit

Permalink
Fix backtrace cleaning for Rails 7.1 because ActionView::Template::Er…
Browse files Browse the repository at this point in the history
…ror now explicitly delegates backtrace to cause
  • Loading branch information
patbenatar committed Oct 16, 2023
1 parent ce3274f commit 311d4ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rbexy/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def _render
template.render(self, {})
rescue ActionView::Template::Error => error
error.set_backtrace clean_template_backtrace(error.backtrace)
error.cause.set_backtrace clean_template_backtrace(error.cause.backtrace)
raise error
end

Expand Down

0 comments on commit 311d4ad

Please sign in to comment.