summaryrefslogtreecommitdiff
path: root/app/controllers/projects/environments_controller.rb
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-10-24 16:10:58 +0100
committerFilipa Lacerda <filipa@gitlab.com>2016-11-16 11:57:58 +0000
commit9c41191a002c088ecb269b1e69606000be9be005 (patch)
tree073e751d943f4f7624be2023e1599c1b689a1d93 /app/controllers/projects/environments_controller.rb
parentd697b9c86d76603a6eda906572e37ccb049e78cd (diff)
downloadgitlab-ce-9c41191a002c088ecb269b1e69606000be9be005.tar.gz
Adds tab behavior to vue component
Diffstat (limited to 'app/controllers/projects/environments_controller.rb')
-rw-r--r--app/controllers/projects/environments_controller.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/controllers/projects/environments_controller.rb b/app/controllers/projects/environments_controller.rb
index b9e2187bc3b..42f882b55ab 100644
--- a/app/controllers/projects/environments_controller.rb
+++ b/app/controllers/projects/environments_controller.rb
@@ -8,14 +8,8 @@ class Projects::EnvironmentsController < Projects::ApplicationController
def index
@scope = params[:scope]
- @all_environments = project.environments
- @environments =
- if @scope == 'stopped'
- @all_environments.stopped
- else
- @all_environments.available
- end
-
+ @environments = project.environments
+
respond_to do |format|
format.html
format.json do