diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-21 17:26:35 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-21 17:26:35 +0100 |
commit | a36d556137116385e84eca592ec62e46ecb97e03 (patch) | |
tree | 439638d981ab25807843c19ed2b369344d27f67c /app/models/environment.rb | |
parent | 1d16f137d93576385e403f5caf5f64bfe0b3a647 (diff) | |
download | gitlab-ce-a36d556137116385e84eca592ec62e46ecb97e03.tar.gz |
Introduce deploy command that allows to start deployment from one environment to second onechatops-deploy-command
Diffstat (limited to 'app/models/environment.rb')
-rw-r--r-- | app/models/environment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |