fix method for rails 4
update dependencies for rails 4 testing