Check the filetype of the file is ruby before sending the Rake autocmd.