Sha256: 5791de2489bf0b11773e85ab7fe77426e708a901b55307f08faa44f034664c0e

Contents?: true

Size: 269 Bytes

Versions: 13

Compression:

Stored size: 269 Bytes

Contents

module Refinery
  module MenuHelper

    # Adds conditional caching
    def cache_if(condition, name = {}, &block)
      if condition
        cache(name, &block)
      else
        yield
      end

      # for <%= style helpers vs <% style
      nil
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
refinerycms-core-3.0.6 app/helpers/refinery/menu_helper.rb
refinerycms-core-3.0.5 app/helpers/refinery/menu_helper.rb
refinerycms-core-3.0.4 app/helpers/refinery/menu_helper.rb
refinerycms-core-3.0.3 app/helpers/refinery/menu_helper.rb
refinerycms-core-3.0.2 app/helpers/refinery/menu_helper.rb
refinerycms-core-3.0.1 app/helpers/refinery/menu_helper.rb
refinerycms-core-3.0.0 app/helpers/refinery/menu_helper.rb
refinerycms-core-2.1.5 app/helpers/refinery/menu_helper.rb
refinerycms-core-2.1.4 app/helpers/refinery/menu_helper.rb
refinerycms-core-2.1.3 app/helpers/refinery/menu_helper.rb
refinerycms-core-2.1.2 app/helpers/refinery/menu_helper.rb
refinerycms-core-2.1.1 app/helpers/refinery/menu_helper.rb
refinerycms-core-2.1.0 app/helpers/refinery/menu_helper.rb