From bebbf12a085b09caeaea98e7247d460364a6cfef Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Tue, 15 Nov 2016 10:12:59 +0000 Subject: Fix JSON problem --- app/helpers/environments_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/helpers/environments_helper.rb b/app/helpers/environments_helper.rb index 7c09c20d118..515e802e01e 100644 --- a/app/helpers/environments_helper.rb +++ b/app/helpers/environments_helper.rb @@ -1,7 +1,7 @@ module EnvironmentsHelper - def environments_list_data() + def environments_list_data { - endpoint: namespace_project_environments_path(@project.namespace, @project) + endpoint: namespace_project_environments_path(@project.namespace, @project, format: :json) } end end -- cgit v1.2.1