removes warning if rails version >= 4.1