Sha256: eb408ab27e3ebe756fd109ad67642eed32cf6f13b1a9b2b66d63f3d71ba64c83

Contents?: true

Size: 274 Bytes

Versions: 11

Compression:

Stored size: 274 Bytes

Contents

module Kuhsaft
  class AnchorBrick < Brick
    validates :caption, :presence => true

    def user_can_add_childs?
      false
    end

    def collect_fulltext
      [super, caption].join(' ')
    end

    def to_id
      "anchor-#{caption.parameterize}"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kuhsaft-2.2.6 app/models/kuhsaft/anchor_brick.rb
kuhsaft-2.2.5 app/models/kuhsaft/anchor_brick.rb
kuhsaft-2.2.4 app/models/kuhsaft/anchor_brick.rb
kuhsaft-2.2.3 app/models/kuhsaft/anchor_brick.rb
kuhsaft-2.2.2 app/models/kuhsaft/anchor_brick.rb
kuhsaft-2.2.1 app/models/kuhsaft/anchor_brick.rb
kuhsaft-2.2.0 app/models/kuhsaft/anchor_brick.rb
kuhsaft-2.1.2 app/models/kuhsaft/anchor_brick.rb
kuhsaft-2.1.1 app/models/kuhsaft/anchor_brick.rb
kuhsaft-2.1.0 app/models/kuhsaft/anchor_brick.rb
kuhsaft-2.0.3 app/models/kuhsaft/anchor_brick.rb