aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/widget_helper.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-04-23 14:26:03 +0100
committerLouise Crow <louise.crow@gmail.com>2015-04-28 09:07:26 +0100
commitc2e0fb9ebfbbaa091806ad97c73930d6ca49b3bd (patch)
tree3349435f802e509abcaa5eaa6ac9f803abde4aca /app/helpers/widget_helper.rb
parent79e7cfa6404d11a1ce39f88cd3a542e6eb54b4e7 (diff)
Use status value from controller.
Diffstat (limited to 'app/helpers/widget_helper.rb')
-rw-r--r--app/helpers/widget_helper.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/widget_helper.rb b/app/helpers/widget_helper.rb
index f188f6b08..e604954fe 100644
--- a/app/helpers/widget_helper.rb
+++ b/app/helpers/widget_helper.rb
@@ -1,6 +1,5 @@
module WidgetHelper
- def status_description(info_request)
- status = info_request.calculate_status
+ def status_description(info_request, status)
case status
when 'waiting_classification'
_('Awaiting classification')