Revert "fix for rails4"

This reverts commit 4b3123304f49d18eea90867fed4be85698b45eb2.
version revert