added support for passing :if parameter to hooks
* I only implemented the minimum required by [devise confirmable plugin](https://github.com/plataformatec/devise/blob/61e87be580efd046441c45539bc92097f1b5a5f9/lib/devise/models/confirmable.rb#L36]