remove dependency on rails 4.1