Sha256: 4a4f59ffb778bd4a6c3626c6bf195121a852ac04e0eb24f6d09896881685e7d7

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

module Kuhsaft
  class PlaceholderBrick < Brick
    PARTIAL_PATH = '/app/views/kuhsaft/placeholder_bricks/partials/_*.haml'

    def self.available_partials
      @partials ||= Kuhsaft::PartialExtractor.new.partials(PARTIAL_PATH)
    end

    def user_can_add_childs?
      false
    end

    def partial_name
      "kuhsaft/placeholder_bricks/partials/#{template_name}"
    end

    def cache_key
      super + partial_digest(partial_name)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kuhsaft-2.3.0 app/models/kuhsaft/placeholder_brick.rb