Class: Paperclip::Attachment

Inherits:
Object
  • Object
show all
Defined in:
lib/paperclip/document/attachment_extension.rb

Instance Method Summary collapse

Instance Method Details

#content_textObject

Returns the content_text of the file as originally extracted, and lives in the <attachment>_content_text attribute of the model.



6
7
8
# File 'lib/paperclip/document/attachment_extension.rb', line 6

def content_text
  instance_read(:content_text)
end

#pages_countObject

Returns the pages_count of the file as originally computed, and lives in the <attachment>_pages_count attribute of the model.



11
12
13
# File 'lib/paperclip/document/attachment_extension.rb', line 11

def pages_count
  instance_read(:pages_count)
end