changed dependencies to fit with rails 4