diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-10-20 20:37:54 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-11-16 11:57:54 +0000 |
commit | d873a3bd552bf63d8037392bdf56b86b1c7996d9 (patch) | |
tree | 5bcff2b77859e2be7f747167b20c7c6d53490449 /app/controllers/projects/environments_controller.rb | |
parent | e4ff8dd2f100daaec614881c2b2733a92f4ec4d8 (diff) | |
download | gitlab-ce-d873a3bd552bf63d8037392bdf56b86b1c7996d9.tar.gz |
Adds commit partial for vue component
Diffstat (limited to 'app/controllers/projects/environments_controller.rb')
-rw-r--r-- | app/controllers/projects/environments_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/projects/environments_controller.rb b/app/controllers/projects/environments_controller.rb index c760f885a4c..20b4ed46d0a 100644 --- a/app/controllers/projects/environments_controller.rb +++ b/app/controllers/projects/environments_controller.rb @@ -76,8 +76,9 @@ class Projects::EnvironmentsController < Projects::ApplicationController last_deployment: { include: { user: { only: [:id, :name, :username], methods: [:avatar_url] }, - deployable: { only: [:id, :name, :ref, :tag, :short_sha] } - } + deployable: { only: [:id, :name, :ref, :tag] } + }, + methods: [:short_sha, :commit_title, :commit] } } ) |