Remove dependency for rails 4