Sha256: fec6ad0e8412011b2ef39985321c550bd08deb1b9df51210c488dcf0f7e92d7f
Contents?: true
Size: 477 Bytes
Versions: 16
Compression:
Stored size: 477 Bytes
Contents
module Qbrick class AssetBrick < Brick mount_uploader :asset, Qbrick::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 delegate :present?, to: :asset, prefix: true end end
Version data entries
16 entries across 16 versions & 1 rubygems