Parent

Methods

Files

Class/Module Index [+]

Quicksearch

Paperclip::UploadedFileAdapter

Attributes

content_type_detector[RW]

Public Class Methods

new(target) click to toggle source
# File lib/paperclip/io_adapters/uploaded_file_adapter.rb, line 3
def initialize(target)
  @target = target
  cache_current_values

  if @target.respond_to?(:tempfile)
    @tempfile = copy_to_tempfile(@target.tempfile)
  else
    @tempfile = copy_to_tempfile(@target)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.