Sha256: 90972698fd70055d65ff035fe8b8308131c2b4ef0c60fcd0ca89612e361dc0db

Contents?: true

Size: 755 Bytes

Versions: 4

Compression:

Stored size: 755 Bytes

Contents

module Bhf
  module ApplicationHelper

    def show_t(platform)
      t("bhf.helpers.entry.models.#{platform.model_name}.show", platform_name: platform.title_singular, default: t('bhf.helpers.entry.show'))
    end

    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

4 entries across 4 versions & 1 rubygems

Version Path
bhf-0.4.17 app/helpers/bhf/application_helper.rb
bhf-0.4.16 app/helpers/bhf/application_helper.rb
bhf-0.4.15 app/helpers/bhf/application_helper.rb
bhf-0.4.14 app/helpers/bhf/application_helper.rb