Upgrade rails to v4.0.12