Commit 7097d86b by liyijie

do not validate attachment file type

parent 8b80d620
......@@ -22,6 +22,7 @@ module Whaleback
class Obj
class Document < Obj
validates_attachment_size :file, less_than: 500.megabytes
do_not_validate_attachment_file_type :file
# validates_attachment_content_type :file,
# content_type: [
# "application/pdf",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment