class ActiveAdmin::ErrorLoading
Public Instance Methods
find_cause(folder, backtrace)
click to toggle source
Locates the most recent file and line from the caught exception’s backtrace.
# File lib/active_admin/error.rb, line 27 def find_cause(folder, backtrace) backtrace.grep(/\/(#{folder}\/.*\.rb):(\d+)/) { [$1, $2] }.first end