Cancel using new hash syntax of Ruby 1.9+

This lines were generated by rails.
Cancel using Proc#=== for Ruby 1.8- compatibility