thoughtbot/paperclip — Issue #726: validates_attachment_content_typ generates 2 errors
Author: andreacfm
Created: 2012-02-02 11:24:19+00:00
State: open

Paperclip 2.5.2
When validating like :

```ruby
SUPPORTED_TYPES = ['pdf','doc']
....
validates_attachment_content_type :allegato, :content_type => SUPPORTED_TYPES.collect{|mime| mime_to_content_type mime},
:message => "Formato del file invalido. I formati supportati sono: #{SUPPORTED_TYPES.join(',')}"
```

Are generated 2 identical errors after one single save command.