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

View file

@ -6,7 +6,12 @@ class Projects::EnvironmentsController < Projects::ApplicationController
before_action :environment, only: [:show, :edit, :update, :destroy] before_action :environment, only: [:show, :edit, :update, :destroy]
def index def index
@scope = params[:scope]
@environments = project.environments @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 end
def show def show