Adds variables to controller

This commit is contained in:
Filipa Lacerda 2016-10-04 14:11:04 +01:00 committed by Kamil Trzcinski
parent 10ea760251
commit b60e8309c5
1 changed files with 5 additions and 0 deletions

View File

@ -6,7 +6,12 @@ class Projects::EnvironmentsController < Projects::ApplicationController
before_action :environment, only: [:show, :edit, :update, :destroy]
def index
@scope = params[:scope]
@environments = project.environments
# TODO: fix the values of this vars to show the correct results
@available_environments_count = project.environments.count
@stopped_environments_count = project.environments.count
end
def show