Add :via to avoid Rails 4 deprecation warning.
hooks 0.3
Merge pull request #83 from pnomolos/rails4

Add :via to avoid Rails 4 deprecation warning.