From 13c8af364296b8b08e87b43ff19ccde8e81dd820 Mon Sep 17 00:00:00 2001 From: wvengen Date: Fri, 1 Nov 2013 12:48:14 +0100 Subject: [PATCH] use abbr instead of acronym for heading helper --- app/helpers/application_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 46f5e6c9..2588ea18 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -78,14 +78,14 @@ module ApplicationHelper # When the 'short' option is true, abbreviations will be used: # When there is a non-empty model attribute 'foo', it looks for # the model attribute translation 'foo_short' and use that as - # heading, with an acronym title of 'foo'. + # heading, with an abbreviation title of 'foo'. # Other options are passed through to I18n. def heading_helper(model, attribute, options = {}) i18nopts = options.select {|a| !['short'].include?(a) } s = model.human_attribute_name(attribute, i18nopts) if options[:short] sshort = model.human_attribute_name("#{attribute}_short".to_sym, options.merge({defaults: ''})) - s = raw "#{sshort}" unless sshort.empty? + s = raw "#{sshort}" unless sshort.empty? end s end