Module: AttachmentMagic

Defined in:
lib/attachment_magic/backends/file_system_backend.rb,
lib/attachment_magic.rb,
lib/attachment_magic/version.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ActMethods, Backends, ClassMethods, InstanceMethods Classes: AttachmentError, ThumbnailError

Constant Summary collapse

VERSION =
"0.2.1"
@@content_types =
[
  'image/jpeg',
  'image/pjpeg',
  'image/jpg',
  'image/gif',
  'image/png',
  'image/x-png',
  'image/jpg',
  'image/x-ms-bmp',
  'image/bmp',
  'image/x-bmp',
  'image/x-bitmap',
  'image/x-xbitmap',
  'image/x-win-bitmap',
  'image/x-windows-bmp',
  'image/ms-bmp',
  'application/bmp',
  'application/x-bmp',
  'application/x-win-bitmap',
  'application/preview',
  'image/jp_',
  'application/jpg',
  'application/x-jpg',
  'image/pipeg',
  'image/vnd.swiftview-jpeg',
  'image/x-xbitmap',
  'application/png',
  'application/x-png',
  'image/gi_',
  'image/x-citrix-pjpeg'
]

Class Method Summary collapse

Class Method Details

.tempfile_pathObject



44
45
46
# File 'lib/attachment_magic.rb', line 44

def self.tempfile_path
  @@tempfile_path ||= Rails.root.join('tmp', 'attachment_magic')
end