Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def documento_a_cargar=(documento)
- if documento.class == ActionController::UploadedTempfile
- self.content_type = documento.content_type.chomp
- self.data = documento.read
- self.filename = documento.original_filename
- end
- end
Add Comment
Please, Sign In to add comment