fixing the rails' confirm option deprecation warning