Skip to content
Snippets Groups Projects
Commit 65b6a37f authored by Thong Kuah's avatar Thong Kuah 💬
Browse files

Run least expensive method first - #has_terminals?

available? is much cheaper than deployment_platform
parent e99a55ff
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment