Sha256: 42362327e1e2046f00430eaf11632fbcde6dfb5abbd29dd150bc1b2cb774be8b

Contents?: true

Size: 338 Bytes

Versions: 62

Compression:

Stored size: 338 Bytes

Contents

module Dragonfly
  module Model
    class Attachment
      module DisableDatastoreDestroy
        def destroy_content(*)
          # We don't want to destroy original content, in case assets need to
          # retrieved or the admin restores from the trash.
        end
      end

      prepend DisableDatastoreDestroy
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.27 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.5.4 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.26 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.5.3 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.25 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.5.2 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.24 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.5.1 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.23 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.22 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.5.0 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.21 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.5.0.beta.1 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.20 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.19 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.18 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.17 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.16 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.15 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb
workarea-core-3.4.14 lib/workarea/ext/freedom_patches/dragonfly_attachment.rb