Allows for rails version >= 4.0.2.