fix various rails4 incompatibilities in the dummy app