Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Tcc < ActiveRecord::Base
- has_attached_file :arquivo
- validates_attachment :arquivo, presence:true,
- content_type: { content_type: "application/pdf" }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement