Module: Golden::Theme::CommonHelper
- Defined in:
- app/helpers/golden/theme/common_helper.rb
Instance Method Summary collapse
Instance Method Details
#value_or_na(value) ⇒ Object
12 13 14 15 |
# File 'app/helpers/golden/theme/common_helper.rb', line 12 def value_or_na value return t('helpers.not_available') if value.blank? value end |
#yes_or_no(value) ⇒ Object
3 4 5 |
# File 'app/helpers/golden/theme/common_helper.rb', line 3 def yes_or_no value value ? t('helpers.yes') : t('helpers.no') end |
#yes_or_no_or_na(value) ⇒ Object
7 8 9 10 |
# File 'app/helpers/golden/theme/common_helper.rb', line 7 def yes_or_no_or_na value return t('helpers.not_available') if value.nil? yes_or_no value end |