From 26497208f5ee229f8c25641d329dec5c471e3a7a Mon Sep 17 00:00:00 2001 From: Jon Yurek Date: Thu, 14 May 2009 20:25:09 -0400 Subject: [PATCH] Content type validation message was missing --- lib/paperclip.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/paperclip.rb b/lib/paperclip.rb index d183d9bb4..5b50ee340 100644 --- a/lib/paperclip.rb +++ b/lib/paperclip.rb @@ -301,6 +301,7 @@ def validates_attachment_presence name, options = {} # re-validation after the instance has been reloaded will always succeed. def validates_attachment_content_type name, options = {} attachment_definitions[name][:validations] << [:content_type, {:content_type => options[:content_type], + :message => options[:message], :if => options[:if], :unless => options[:unless]}] end