From 524f1533456b842ccfcba8418f9376ea0239a710 Mon Sep 17 00:00:00 2001 From: takuya71 Date: Tue, 15 Apr 2014 23:42:50 +0900 Subject: [PATCH] no validation of attachmnet file for not S3 env --- app/models/attachment.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/attachment.rb b/app/models/attachment.rb index a9f2b158..95151172 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -17,6 +17,7 @@ class Attachment < ActiveRecord::Base validates_attachment_content_type :file, :content_type=>"*" #This doesn't do anything but it is required by Paperclip 4+ else has_attached_file :file + do_not_validate_attachment_file_type :file end attr_accessible :file