Sha256: 011887feac9de7bf84f8a38d237abbab0f2b36b035fdc0bf86ef1016a7c964ca

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module DecidimAwesome
    module GlobalMenuCellOverride
      extend ActiveSupport::Concern

      included do
        def cache_hash
          [
            "decidim/content_blocks/global_menu",
            current_organization.cache_key_with_version,
            I18n.locale,
            awesome_config[:home_content_block_menu].to_s
          ].join(Decidim.cache_key_separator)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.11.2 app/cells/concerns/decidim/decidim_awesome/global_menu_cell_override.rb
decidim-decidim_awesome-0.11.1 app/cells/concerns/decidim/decidim_awesome/global_menu_cell_override.rb