Sha256: 34760eeac47b80253a4f653a0fa1683d61cb971f6e23e4bc6df32aa2318e0d61
Contents?: true
Size: 743 Bytes
Versions: 1
Compression:
Stored size: 743 Bytes
Contents
## # Helper generale per gemma module Alchemy::Custom::Model module BaseHelper def BaseHelper.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 include TranslationScope 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy-custom-model-2.0.0 | app/helpers/alchemy/custom/model/base_helper.rb |