Setting dependencies to be compatible with rails 4