module StringHelper

Public Instance Methods

name_or_empty(instance) click to toggle source
# File lib/active_extend/string_helper.rb, line 2
def name_or_empty(instance)
  instance ? instance.name.upcase : I18n.t('helpers.empty')
end
name_or_nothing(instance) click to toggle source
# File lib/active_extend/string_helper.rb, line 6
def name_or_nothing(instance)
  instance ? instance.name.upcase : ""
end