change message gateway to save received email as attachment to the todo

This commit is contained in:
Reinier Balt 2014-07-03 23:24:29 +02:00
parent 76de5bf2b3
commit 4d7c453ca7
4 changed files with 51 additions and 2 deletions

View file

@ -0,0 +1,10 @@
#config/initilizers/paperclip.rb
require 'paperclip/media_type_spoof_detector'
module Paperclip
class MediaTypeSpoofDetector
def spoofed?
false
end
end
end

View file

@ -90,6 +90,7 @@ Rails.application.routes.draw do
get 'convert_to_project' # TODO: convert to PUT/POST
delete 'remove_predecessor' # TODO: convert to PUT/POST
post 'change_context'
get 'attachment'
end
collection do
get 'done'