Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Document < ActiveRecord::Base
- acts_as_paranoid
- belongs_to :upload
- belongs_to :user
- ## i'd like to define the Upload.has_attachment here so that I can have many different things stored in a single uploads table
- ## i couldn't find a way to do it. like in Document, I'd like to have pdfs and word documents and not generate thumbnails
- end
Add Comment
Please, Sign In to add comment