Class: Paperclip::FileAdapter

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

Constant Summary

Constants inherited from AbstractAdapter

AbstractAdapter::OS_RESTRICTED_CHARACTERS

Instance Attribute Summary

Attributes inherited from AbstractAdapter

#content_type, #original_filename, #size

Instance Method Summary collapse

Methods inherited from AbstractAdapter

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

Constructor Details

#initialize(target) ⇒ FileAdapter

Returns a new instance of FileAdapter.



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

def initialize(target)
  @target = target
  cache_current_values
end