Sha256: 7de8a27d50c7057375ff3585881ea1e7df7f3ed22b34f5a8ca7d31360ab26cc2

Contents?: true

Size: 579 Bytes

Versions: 15

Compression:

Stored size: 579 Bytes

Contents

module Bhf
  module ApplicationHelper

    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

    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

    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

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bhf-0.4.13 app/helpers/bhf/application_helper.rb
bhf-0.4.12 app/helpers/bhf/application_helper.rb
bhf-0.4.11 app/helpers/bhf/application_helper.rb
bhf-0.4.10 app/helpers/bhf/application_helper.rb
bhf-0.4.9 app/helpers/bhf/application_helper.rb
bhf-0.4.8 app/helpers/bhf/application_helper.rb
bhf-0.4.7 app/helpers/bhf/application_helper.rb
bhf-0.4.6 app/helpers/bhf/application_helper.rb
bhf-0.4.5 app/helpers/bhf/application_helper.rb
bhf-0.4.4 app/helpers/bhf/application_helper.rb
bhf-0.4.3 app/helpers/bhf/application_helper.rb
bhf-0.4.2.7 app/helpers/bhf/application_helper.rb
bhf-0.4.2.5 app/helpers/bhf/application_helper.rb
bhf-0.4.2.4 app/helpers/bhf/application_helper.rb
bhf-0.4.2.3 app/helpers/bhf/application_helper.rb