Commit f1e5ca3a authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 94611607
...@@ -43,7 +43,7 @@ class BuildsEmailService < Service ...@@ -43,7 +43,7 @@ class BuildsEmailService < Service
end end
def can_test? def can_test?
project.builds.count > 0 project.builds.any?
end end
def disabled_title def disabled_title
......
...@@ -39,7 +39,7 @@ class PipelinesEmailService < Service ...@@ -39,7 +39,7 @@ class PipelinesEmailService < Service
end end
def can_test? def can_test?
project.pipelines.count > 0 project.pipelines.any?
end end
def disabled_title def disabled_title
......
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