Sha256: a47655d0c979740ea8101cbcc755565ae1896d72c3a772f1789d22797241b6e1

Contents?: true

Size: 364 Bytes

Versions: 11

Compression:

Stored size: 364 Bytes

Contents

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

    def self.styles
      %w(pdf word excel button external)
    end

    def to_style_class
      [super, link_style.presence].join(' ')
    end

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

    def user_can_add_childs?
      false
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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