Class: Paperclip::IdentityAdapter

Inherits:
AbstractAdapter show all
Defined in:
lib/paperclip/io_adapters/identity_adapter.rb

Constant Summary

Constants inherited from AbstractAdapter

AbstractAdapter::OS_RESTRICTED_CHARACTERS

Instance Attribute Summary

Attributes inherited from AbstractAdapter

#content_type, #original_filename, #size

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractAdapter

#assignment?, #fingerprint, #inspect, #nil?, #read

Constructor Details

#initializeIdentityAdapter



9
10
# File 'lib/paperclip/io_adapters/identity_adapter.rb', line 9

def initialize
end

Class Method Details

.registerObject



3
4
5
6
7
# File 'lib/paperclip/io_adapters/identity_adapter.rb', line 3

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

Instance Method Details

#new(target, _) ⇒ Object



12
13
14
# File 'lib/paperclip/io_adapters/identity_adapter.rb', line 12

def new(target, _)
  target
end