Sha256: 49e908a1453aea9e5b7432890b05d7ac1a7129222d96b78a3bc7f0a9dadf1244

Contents?: true

Size: 207 Bytes

Versions: 10

Compression:

Stored size: 207 Bytes

Contents

# frozen_string_literal: true

module Alchemy
  module AttachmentMonkeyPatch
    def url
      if file
        Alchemy::Attachment::S3Url.call(self)
      end
    end

    Attachment.prepend(self)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alchemy-dragonfly-s3-3.6.6 lib/alchemy/attachment_monkey_patch.rb
alchemy-dragonfly-s3-4.0.5 lib/alchemy/attachment_monkey_patch.rb
alchemy-dragonfly-s3-5.0.6 lib/alchemy/attachment_monkey_patch.rb
alchemy-dragonfly-s3-5.0.5 lib/alchemy/attachment_monkey_patch.rb
alchemy-dragonfly-s3-4.0.4 lib/alchemy/attachment_monkey_patch.rb
alchemy-dragonfly-s3-3.6.5 lib/alchemy/attachment_monkey_patch.rb
alchemy-dragonfly-s3-4.0.3 lib/alchemy/attachment_monkey_patch.rb
alchemy-dragonfly-s3-3.6.4 lib/alchemy/attachment_monkey_patch.rb
alchemy-dragonfly-s3-4.0.2 lib/alchemy/attachment_monkey_patch.rb
alchemy-dragonfly-s3-5.0.4 lib/alchemy/attachment_monkey_patch.rb