changed dependences to work with rails 4