Created
June 9, 2016 08:40
-
-
Save saboyutaka/a123c201a1625d3b121da3a87686617b to your computer and use it in GitHub Desktop.
BetterErrorsのリンクを踏むとAtomでローカルのソースファイルを開くようにする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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