adds rails4 compatibility
require should after rails so it loads correctly