Sha256: 1edad8480db5bee42298f2aef88975364384d5be3f15b5263f0b0ebe7014968c

Contents?: true

Size: 304 Bytes

Versions: 30

Compression:

Stored size: 304 Bytes

Contents

module Kuhsaft
  class AnchorBrick < Brick
    attr_accessible :caption

    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

30 entries across 30 versions & 1 rubygems

Version Path
kuhsaft-1.2.12 app/models/kuhsaft/anchor_brick.rb
kuhsaft-1.2.11 app/models/kuhsaft/anchor_brick.rb
kuhsaft-1.2.10 app/models/kuhsaft/anchor_brick.rb
kuhsaft-1.2.9 app/models/kuhsaft/anchor_brick.rb
kuhsaft-1.2.8 app/models/kuhsaft/anchor_brick.rb
kuhsaft-1.2.7 app/models/kuhsaft/anchor_brick.rb
kuhsaft-1.2.6 app/models/kuhsaft/anchor_brick.rb
kuhsaft-1.2.5 app/models/kuhsaft/anchor_brick.rb
kuhsaft-1.2.4 app/models/kuhsaft/anchor_brick.rb
kuhsaft-1.2.3 app/models/kuhsaft/anchor_brick.rb