Commit 65b6a37f authored by Thong Kuah's avatar Thong Kuah

Run least expensive method first - #has_terminals?

available? is much cheaper than deployment_platform
parent e99a55ff
......@@ -155,7 +155,7 @@ class Environment < ApplicationRecord
end
def has_terminals?
deployment_platform.present? && available? && last_deployment.present?
available? && deployment_platform.present? && last_deployment.present?
end
def terminals
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment