Module: ScribdFu

Defined in:
lib/scribd_fu.rb,
lib/paperclip/methods.rb,
lib/attachment_fu/methods.rb

Defined Under Namespace

Modules: ActsAsScribdDocument, AttachmentFu, ClassMethods, InstanceMethods, Paperclip

Constant Summary collapse

CONTENT_TYPES =

A list of content types supported by scribd.

['application/pdf', 'image/jpeg', 'image/pjpeg',
               'image/gif', 'image/png', 'image/x-png', 'image/jpg',
               'application/msword', 'application/mspowerpoint',
               'application/vnd.ms-powerpoint', 'application/excel',
               'application/vnd.ms-excel', 'application/postscript',
               'text/plain', 'application/rtf',
               'application/vnd.oasis.opendocument.text',
               'application/vnd.oasis.opendocument.presentation',
               'application/vnd.oasis.opendocument.spreadsheet',
               'application/vnd.sun.xml.writer',
               'application/vnd.sun.xml.impress',
               'application/vnd.sun.xml.calc',
# OOXML, AKA `the MIME types from hell'. Seriously, these are long enough to
# start their own dictionary...
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
'application/vnd.openxmlformats-officedocument.presentationml.template',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.openxmlformats-officedocument.wordprocessingml.template']

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



28
29
30
# File 'lib/scribd_fu.rb', line 28

def self.included(base)
  base.extend ActsAsScribdDocument
end