Class: Paperclip::IdentityAdapter
- Inherits:
-
AbstractAdapter
- Object
- AbstractAdapter
- Paperclip::IdentityAdapter
- 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, #tempfile
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ IdentityAdapter
constructor
A new instance of IdentityAdapter.
- #new(target, _) ⇒ Object
Methods inherited from AbstractAdapter
#assignment?, #fingerprint, #inspect, #nil?, #read
Constructor Details
#initialize ⇒ IdentityAdapter
Returns a new instance of IdentityAdapter.
9 10 |
# File 'lib/paperclip/io_adapters/identity_adapter.rb', line 9 def initialize end |
Class Method Details
.register ⇒ Object
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 |