Fixes #3670 - Ruby 1.8 compatible hooks
Merge pull request #41 from ares/bug/3670

Fixes #3670 - Ruby 1.8 compatible hooks