fix dependencies to allow rails 4