a guest May 25th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- class Document < ActiveRecord::Base
- 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
RAW Paste Data