Sha256: a6653d399336119cd7af646d23d7e3e6ce844a638ceb28c9c3211b84880230c8
Contents?: true
Size: 748 Bytes
Versions: 5
Compression:
Stored size: 748 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')) 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')) 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')) end def current_path(overwrite = {}) url_for params.merge(overwrite.merge(:only_path => true)) end end end
Version data entries
5 entries across 5 versions & 1 rubygems