summaryrefslogtreecommitdiff
path: root/app/controllers/projects/environments_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/environments_controller.rb')
-rw-r--r--app/controllers/projects/environments_controller.rb5
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]
}
}
)