Update dependencies for Rails 4