Sha256: a26dd9f755d79411928a98870397994297ab6eeb9039d5be82ab6c4630950ad2
Contents?: true
Size: 469 Bytes
Versions: 4
Compression:
Stored size: 469 Bytes
Contents
module Kuhsaft class AssetBrick < Brick attr_accessible :caption, :link_style, :asset mount_uploader :asset, Kuhsaft::AssetBrickAssetUploader validates :caption, :asset, :presence => true def self.styles %w(pdf word excel button) 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
4 entries across 4 versions & 1 rubygems