Skip to content

Project root as part of filename. #33

merged 1 commit into from Jul 3, 2011

2 participants

oruen commented Jul 2, 2011

Filtering project root on backtrace can break filename consistency if project root looks like a part of filename.
I've run into this on Heroku cedar stack where my app root is /app. So backtrace filtering makes [PROJECT_ROOT][PROJECT_ROOT]/model/user.rb from /app/app/model/user.rb which is wrong.

Substituting only the first occurrence of project root solves the problem.

@croaky croaky merged commit 88f12ea into thoughtbot:master Jul 3, 2011
thoughtbot, inc. member
croaky commented Jul 3, 2011

Nice, looks good. I've started to use the Cedar stack, too, so this should come in handy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.