Commit 4c2ea0c7 by Jon Yurek

Changed the default content_type validation message to something more relevant.

parent 0e1f0617
...@@ -190,7 +190,7 @@ module Paperclip ...@@ -190,7 +190,7 @@ module Paperclip
unless options[:content_type].blank? unless options[:content_type].blank?
content_type = instance[:"#{name}_content_type"] content_type = instance[:"#{name}_content_type"]
unless valid_types.any?{|t| t === content_type } unless valid_types.any?{|t| t === content_type }
options[:message] || ActiveRecord::Errors.default_error_messages[:inclusion] options[:message] || "is not one of the allowed file types."
end end
end end
end end
......
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