method

parse_message_for_trace

parse_message_for_trace()
private

No documentation available.

# File activesupport/lib/active_support/syntax_error_proxy.rb, line 50
      def parse_message_for_trace
        if __getobj__.to_s.start_with?("(eval")
          # If the exception is coming from a call to eval, we need to keep
          # the path of the file in which eval was called to ensure we can
          # return the right source fragment to show the location of the
          # error
          location = __getobj__.backtrace_locations[0]
          ["#{location.path}:#{location.lineno}: #{__getobj__}"]
        else
          __getobj__.to_s.split("\n")
        end
      end