diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-09-17 17:09:25 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-09-25 12:57:55 +0100 |
commit | 2fdfd7b62e603b5f4d2ff5925a49b2d5ed83bf3b (patch) | |
tree | 2e8d8272beee078367caa4b7d7d8cfa326a3dc2f /app/helpers | |
parent | dcd75661164ec372f35fdc7be498e004f8a0b768 (diff) |
Add an action to run the checks
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/health_checks_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/health_checks_helper.rb b/app/helpers/health_checks_helper.rb new file mode 100644 index 000000000..f5769a9ba --- /dev/null +++ b/app/helpers/health_checks_helper.rb @@ -0,0 +1,8 @@ +module HealthChecksHelper + + def check_status(check) + style = check.ok? ? {} : "color: red" + content_tag(:b, check.message, :style => style) + end + +end |