Methods

Files

Class/Module Index [+]

Quicksearch

Paperclip::AttachmentAdapter

Public Class Methods

new(target) click to toggle source
# File lib/paperclip/io_adapters/attachment_adapter.rb, line 3
def initialize(target)
  @target, @style = case target
  when Paperclip::Attachment
    [target, :original]
  when Paperclip::Style
    [target.attachment, target.name]
  end

  cache_current_values
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.