Sha256: 7f766af19dbbb3b97de05deca6e30fba495a25a5ce04ec5eb4f874f49e8edda3

Contents?: true

Size: 349 Bytes

Versions: 6

Compression:

Stored size: 349 Bytes

Contents

module Paperclip
  class IdentityAdapter < AbstractAdapter
    def self.register
      Paperclip.io_adapters.register Paperclip::IdentityAdapter.new do |target|
        Paperclip.io_adapters.registered?(target)
      end
    end

    def initialize
    end

    def new(target, _)
      target
    end
  end
end

Paperclip::IdentityAdapter.register

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
kt-paperclip-5.4.0 lib/paperclip/io_adapters/identity_adapter.rb
paperclip-6.1.0 lib/paperclip/io_adapters/identity_adapter.rb
paperclip-6.0.0 lib/paperclip/io_adapters/identity_adapter.rb
paperclip-5.3.0 lib/paperclip/io_adapters/identity_adapter.rb
paperclip-5.2.1 lib/paperclip/io_adapters/identity_adapter.rb
paperclip-5.2.0 lib/paperclip/io_adapters/identity_adapter.rb