cakephp/bake — pull request #8 by aleixfabra (2014-12-21 18:30:16+00:00)
Title: Restructuring controller delete #2

Check allow method first and then do the rest. In this way, we don't need to execute get method. So we save execution time.