Sha256: ff0dcf6214480aef8119e2fda65cdf2f780486f92b93a36c7b2bb9fa94a3424a
Contents?: true
Size: 290 Bytes
Versions: 2
Compression:
Stored size: 290 Bytes
Contents
# frozen_string_literal: true module Wallaby module Resources # Html cell class ActiveStorageHtml < Cell # @return [String] def render value.try(:attachment) ? link_to(value.attachment.blob.filename, rails_blob_path(value)) : null end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wallaby-6.0.2 | app/views/wallaby/resources/active_storage_html.rb |
wallaby-6.0.1 | app/views/wallaby/resources/active_storage_html.rb |