Module: Bhf::ApplicationHelper
- Defined in:
- app/helpers/bhf/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#delete_t(platform) ⇒ Object
12 13 14 |
# File 'app/helpers/bhf/application_helper.rb', line 12 def delete_t(platform) t("bhf.helpers.entry.models.#{platform.model_name}.delete", platform_name: platform.title_singular, default: t('bhf.helpers.entry.delete')) end |
#edit_t(platform) ⇒ Object
8 9 10 |
# File 'app/helpers/bhf/application_helper.rb', line 8 def edit_t(platform) t("bhf.helpers.entry.models.#{platform.model_name}.edit", platform_name: platform.title_singular, default: t('bhf.helpers.entry.edit')) end |
#new_t(platform) ⇒ Object
4 5 6 |
# File 'app/helpers/bhf/application_helper.rb', line 4 def new_t(platform) t("bhf.helpers.entry.models.#{platform.model_name}.new", platform_name: platform.title_singular, default: t('bhf.helpers.entry.new')) end |