Update dependencies to ensure compatibility with Rails 4