public Method

Exception.application_backtrace

There's no documentation for this item.

Source Code

# File active_support/core_ext/exception.rb, line 25
def application_backtrace
  before_application_frame = true

  trace = clean_backtrace.reject do |line|
    non_app_frame = (line =~ FrameworkRegexp)
    before_application_frame = false unless non_app_frame
    non_app_frame && ! before_application_frame
  end

  # If we didn't find any application frames, return an empty app trace.
  before_application_frame ? [] : trace
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.