Sha256: 9fada1ffe0132bd74c3dd0caf607501727a44fd8fac42d5b942a5b4e534a235a

Contents?: true

Size: 597 Bytes

Versions: 7

Compression:

Stored size: 597 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

7 entries across 7 versions & 1 rubygems

Version Path
bhf-0.4.2.2 app/helpers/bhf/application_helper.rb
bhf-0.4.2.1 app/helpers/bhf/application_helper.rb
bhf-0.4.2 app/helpers/bhf/application_helper.rb
bhf-0.4.1 app/helpers/bhf/application_helper.rb
bhf-0.4.0 app/helpers/bhf/application_helper.rb
bhf-0.3.11 app/helpers/bhf/application_helper.rb
bhf-0.3.10 app/helpers/bhf/application_helper.rb