Temporary hack for rails4 compatability