Sha256: 1de50b5d00dde18e14f372e8646a241b3de802b15c32515f848d850884a69253
Contents?: true
Size: 482 Bytes
Versions: 5
Compression:
Stored size: 482 Bytes
Contents
module Kuhsaft class AssetBrick < Brick 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
5 entries across 5 versions & 1 rubygems