removed the dependency of rails less than v4.0