Module: Alchemy::Custom::Model::BaseHelper
- Includes:
- TranslationScope
- Defined in:
- app/helpers/alchemy/custom/model/base_helper.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from TranslationScope
Class Method Details
.included(mod) ⇒ Object
7 8 9 10 11 12 |
# File 'app/helpers/alchemy/custom/model/base_helper.rb', line 7 def self.included(mod) if ::Rails.application.config.action_controller.include_all_helpers!=false raise "Devi definire in config/application.rb config.action_controller.include_all_helpers=false in modo da far funzionare correttamente l'override degli helper come per i controller" end end |
Instance Method Details
#print_current_site_language ⇒ Object
17 18 19 20 21 22 23 |
# File 'app/helpers/alchemy/custom/model/base_helper.rb', line 17 def print_current_site_language content_tag(:div, class: "current_site_language") do acm_t(:you_are_editing_site_language, site: Alchemy::Site.current.name, language: Alchemy::Language.current.name).html_safe end end |