Sha256: 436c658848a592e08be3fb4f8a7cb4ccd7ac81705f3ecccb2deaaf99455b8099

Contents?: true

Size: 666 Bytes

Versions: 19

Compression:

Stored size: 666 Bytes

Contents

module Bhf
  module ApplicationHelper

    def new_t(platform)
      t("bhf.helpers.entry.models.#{platform.model_name}.new", :platform_name => platform.title.singularize.downcase, :default => t('bhf.helpers.entry.new')).capitalize
    end

    def edit_t(platform)
      t("bhf.helpers.entry.models.#{platform.model_name}.edit", :platform_name => platform.title.singularize.downcase, :default => t('bhf.helpers.entry.edit')).capitalize
    end

    def delete_t(platform)
      t("bhf.helpers.entry.models.#{platform.model_name}.delete", :platform_name => platform.title.singularize.downcase, :default => t('bhf.helpers.entry.delete')).capitalize
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
bhf-0.3.9 app/helpers/bhf/application_helper.rb
bhf-0.3.8 app/helpers/bhf/application_helper.rb
bhf-0.3.7 app/helpers/bhf/application_helper.rb
bhf-0.3.6.4 app/helpers/bhf/application_helper.rb
bhf-0.3.6.3 app/helpers/bhf/application_helper.rb
bhf-0.3.6.2 app/helpers/bhf/application_helper.rb
bhf-0.3.6.1 app/helpers/bhf/application_helper.rb
bhf-0.3.5 app/helpers/bhf/application_helper.rb
bhf-0.3.4 app/helpers/bhf/application_helper.rb
bhf-0.3.3 app/helpers/bhf/application_helper.rb
bhf-0.3.2 app/helpers/bhf/application_helper.rb
bhf-0.3.1 app/helpers/bhf/application_helper.rb
bhf-0.3.0 app/helpers/bhf/application_helper.rb
bhf-0.2.9 app/helpers/bhf/application_helper.rb
bhf-0.2.8 app/helpers/bhf/application_helper.rb
bhf-0.2.7 app/helpers/bhf/application_helper.rb
bhf-0.2.6 app/helpers/bhf/application_helper.rb
bhf-0.2.5 app/helpers/bhf/application_helper.rb
bhf-0.2.4 app/helpers/bhf/application_helper.rb