gitlab-org--gitlab-foss/spec/views
Kamil Trzciński 8b694ae891 Merge branch '24779-last-deployment-call-on-nil-environment-fix' into 'master'
changes environment.last_deployment to a try expression so it does not fail if e…

## What does this MR do?

Fixes the call on `environment.last_deployment` to not break when `environment`is not yet set.

## Does this MR meet the acceptance criteria?

- [x] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if it does - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?


Closes #24779

See merge request !7671
2016-11-24 14:31:20 +00:00
..
admin/dashboard Upgrade Devise from 4.1.1 to 4.2.0. 2016-09-27 20:08:49 -06:00
ci/lints Merge commit 'dev/security' into 'master' 2016-10-06 08:33:11 +02:00
devise/shared Fix login tests for crowd to use #crowd. 2016-10-18 11:12:41 +02:00
help Allow non-admin users to see version information 2015-09-23 17:18:15 -04:00
layouts Update Hamlit to 2.6.1 2016-08-18 13:26:32 -05:00
projects Merge branch '24779-last-deployment-call-on-nil-environment-fix' into 'master' 2016-11-24 14:31:20 +00:00