Sha256: b5e478d4c6983714c410a63fc077cefecf61f7fa22b6d76c6357232d89c90746
Contents?: true
Size: 435 Bytes
Versions: 23
Compression:
Stored size: 435 Bytes
Contents
module Kuhsaft class LinkBrick < Brick attr_accessible :href, :caption, :link_style, :open_in_new_window 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
23 entries across 23 versions & 1 rubygems