Need a $ in the regex to only look at the end of the filename - /\.docx?$/. Otherwise even "dffd.docxtreme.mp3" will pass.

But probably best to do: 
    File.extname(decision.doc_file.file.path) == ".doc"