almost port to Rails 4; then went back to 3.2.13.rc1