instance method
translate_location
Ruby on Rails 8.1.2
Since v7.1.6Signature
translate_location(backtrace_location, spot)
Translate an error location returned by ErrorHighlight to the correct source location inside the template.
Parameters
-
backtrace_locationreq -
spotreq
Source
# File actionview/lib/action_view/template.rb, line 251
def translate_location(backtrace_location, spot)
if handler.respond_to?(:translate_location)
handler.translate_location(spot, backtrace_location, encode!) || spot
else
spot
end
end
Defined in actionview/lib/action_view/template.rb line 251
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Template