Sha256: 0d1e0465e95489e97575a03a1e79f5f332c05035dd9a5141dc90fd10df8eb9aa
Contents?: true
Size: 522 Bytes
Versions: 19
Compression:
Stored size: 522 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 def asset_present? asset.present? end end end
Version data entries
19 entries across 19 versions & 1 rubygems