class ActionBlocks::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/action_blocks/error.rb, line 24 def find_cause(folder, backtrace) backtrace.grep(/\/(#{folder}\/.*\.rb):(\d+)/){ [$1, $2] }.first end