Template changes for making plugin compatible with ruby 3.2+