Sha256: 94fe7c580d421517f360777cb859d4b4f3d9e3303a4a738741d29b2475377027

Contents?: true

Size: 737 Bytes

Versions: 17

Compression:

Stored size: 737 Bytes

Contents

##
# Helper generale per gemma
module Alchemy::Custom::Model
  module BaseHelper


    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

    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

17 entries across 17 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-3.1.5 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-3.1.4 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-3.1.3 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-3.1.2 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-3.1.1 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-3.1.0 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-2.2.2 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-3.0.0 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-2.2.1 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-2.2.0 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-2.1.2 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-2.1.1 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-2.1.0 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-2.0.3 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-2.0.2 app/helpers/alchemy/custom/model/base_helper.rb
alchemy-custom-model-2.0.1 app/helpers/alchemy/custom/model/base_helper.rb