remove rails < 4 remnants, deprecated methods