Class: Wallaby::Resources::ActiveStorageHtml

Inherits:
Cell
  • Object
show all
Defined in:
app/views/wallaby/resources/active_storage_html.rb

Overview

Html cell

Instance Method Summary collapse

Instance Method Details

#renderString

Returns:

  • (String)


8
9
10
# File 'app/views/wallaby/resources/active_storage_html.rb', line 8

def render
  value.try(:attachment) ? link_to(value.attachment.blob.filename, rails_blob_path(value)) : null
end