Sha256: 0467294789cfca81fcfe0d39dde8efab91e78734f17a392fdc6999afe518b076

Contents?: true

Size: 289 Bytes

Versions: 7

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true

class ActiveStorage::AttachmentDrop < Liquidum::Drop
  def download
    @object.download
  end

  def filename
    @object.filename.to_s
  end

  def content_type
    @object.content_type
  end

  def [](something)
    @object.send(something).to_s
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
liquidum-1.2.1 lib/liquidum/liquid/drops/active_storage_attachment_drop.rb
liquidum-1.2.0 lib/liquidum/liquid/drops/active_storage_attachment_drop.rb
liquidum-1.1.2 lib/liquidum/liquid/drops/active_storage_attachment_drop.rb
liquidum-1.1.1 lib/liquidum/liquid/drops/active_storage_attachment_drop.rb
liquidum-1.1.0 lib/liquidum/liquid/drops/active_storage_attachment_drop.rb
liquidum-1.0.22 lib/liquidum/liquid/drops/active_storage_attachment_drop.rb
liquidum-1.0.17 lib/liquidum/liquid/drops/active_storage_attachment_drop.rb