Method: Paperclip::Attachment.default_options

Defined in:
lib/paperclip/attachment.rb

.default_optionsObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/paperclip/attachment.rb', line 9

def self.default_options
  @default_options ||= {
    :url               => "/system/:attachment/:id/:style/:filename",
    :path              => ":rails_root/public:url",
    :styles            => {},
    :processors        => [:thumbnail],
    :convert_options   => {},
    :default_url       => "/:attachment/:style/missing.png",
    :default_style     => :original,
    :storage           => :filesystem,
    :use_timestamp     => true,
    :whiny             => Paperclip.options[:whiny] || Paperclip.options[:whiny_thumbnails]
  }
end