Skip to Content Skip to Search
Methods
N
S

Class Public methods

new(location, template)

# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 225
def initialize(location, template)
  super(location)
  @template = template
end

Instance Public methods

spot(exc)

# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 230
def spot(exc)
  if RubyVM::AbstractSyntaxTree.respond_to?(:node_id_for_backtrace_location)
    location = @template.spot(__getobj__)
  else
    location = super
  end

  if location
    @template.translate_location(__getobj__, location)
  end
end