Skip to content

Instantly share code, notes, and snippets.

@saboyutaka
Created June 9, 2016 08:40
Show Gist options
  • Save saboyutaka/a123c201a1625d3b121da3a87686617b to your computer and use it in GitHub Desktop.
Save saboyutaka/a123c201a1625d3b121da3a87686617b to your computer and use it in GitHub Desktop.
BetterErrorsのリンクを踏むとAtomでローカルのソースファイルを開くようにする
if defined? BetterErrors
BetterErrors.editor = proc { |full_path, line|
full_path = full_path.sub(Rails.root.to_s, '/path/to/rails/root')
"atm://open?url=file://#{full_path}&line=#{line}"
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment