Fix github issue #22. https://github.com/joost/phony_rails/issues/22