Sha256: ef5be93153072b50d6e05679f956ac41827b815e8cf857f84de78aff7141659b

Contents?: true

Size: 487 Bytes

Versions: 18

Compression:

Stored size: 487 Bytes

Contents

require_relative './brick'

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

18 entries across 18 versions & 2 rubygems

Version Path
kuhsaft-2.6.3 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.6.2 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.6.1 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.5.2 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.6.0 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.5.1 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.5.0 app/models/kuhsaft/placeholder_brick.rb
qbrick-2.5.0.pre app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.4.3 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.4.2 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.4.1 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.4.0 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.3.6 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.3.5 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.3.4 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.3.3 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.3.2 app/models/kuhsaft/placeholder_brick.rb
kuhsaft-2.3.1 app/models/kuhsaft/placeholder_brick.rb