saucy/app/helpers/application_helper.rb

18 lines
294 B
Ruby
Raw Normal View History

module ApplicationHelper
2022-06-25 12:48:46 +00:00
def member_status(status)
t("members.status.#{status}")
end
def notification_status(status)
t("notifications.status.#{status}")
end
2022-06-26 09:44:30 +00:00
def bool_option(value)
if value
t('option.positive')
else
t('option.negative')
end
end
end