Module: Bhf::ApplicationHelper
- Defined in:
- app/helpers/bhf/application_helper.rb
Instance Method Summary collapse
- #current_path(overwrite = {}) ⇒ Object
- #delete_t(platform) ⇒ Object
- #edit_t(platform) ⇒ Object
- #new_t(platform) ⇒ Object
Instance Method Details
#current_path(overwrite = {}) ⇒ Object
17 18 19 |
# File 'app/helpers/bhf/application_helper.rb', line 17 def current_path(overwrite = {}) url_for params.merge(overwrite.merge(:only_path => true)) end |
#delete_t(platform) ⇒ Object
13 14 15 |
# File 'app/helpers/bhf/application_helper.rb', line 13 def delete_t(platform) t("bhf.helpers.entry.models.#{platform.model_name}.delete", :platform_name => platform.title.singularize, :default => t('bhf.helpers.entry.delete')) end |
#edit_t(platform) ⇒ Object
9 10 11 |
# File 'app/helpers/bhf/application_helper.rb', line 9 def edit_t(platform) t("bhf.helpers.entry.models.#{platform.model_name}.edit", :platform_name => platform.title.singularize, :default => t('bhf.helpers.entry.edit')) end |
#new_t(platform) ⇒ Object
5 6 7 |
# File 'app/helpers/bhf/application_helper.rb', line 5 def new_t(platform) t("bhf.helpers.entry.models.#{platform.model_name}.new", :platform_name => platform.title.singularize, :default => t('bhf.helpers.entry.new')) end |