From a36d556137116385e84eca592ec62e46ecb97e03 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Mon, 21 Nov 2016 17:26:35 +0100 Subject: Introduce deploy command that allows to start deployment from one environment to second one --- app/models/environment.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/models/environment.rb b/app/models/environment.rb index e6dd7717e46..a7f4156fc2e 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -103,8 +103,8 @@ class Environment < ActiveRecord::Base def actions_for(environment) return [] unless manual_actions - manual_actions.select |action| - action.expanded_environment_name = environment + manual_actions.select do |action| + action.expanded_environment_name == environment end end end -- cgit v1.2.1