Changed the rails dependency to work with newer versions of Rails