From 7287c91821beeedf71a85c8ba1c04c5d1f12de3f Mon Sep 17 00:00:00 2001 From: Florian Kraft Date: Wed, 18 Mar 2015 12:05:15 +0100 Subject: [PATCH] Revert "remove required_field_name from ApplicationHelper" This reverts commit a3896c6e2d7b24e64ce38667006b582c23941a8d. --- app/helpers/application_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1ef58e258d..36c71c3537 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -66,6 +66,10 @@ module ApplicationHelper end end + def required_field_name(name = '') + safe_join [name, ' ', content_tag('span', '*', class: 'required')] + end + def li_unless_nil(link) content_tag(:li, link) if link end