Method: Spree::Image::PaperclipAttachment#no_attachment_errors
- Defined in:
- app/models/spree/image/paperclip_attachment.rb
#no_attachment_errors ⇒ Object
if there are errors from the plugin, then add a more meaningful message
47 48 49 50 51 52 53 54 |
# File 'app/models/spree/image/paperclip_attachment.rb', line 47 def unless .errors.empty? # uncomment this to get rid of the less-than-useful interim messages # errors.clear errors.add :attachment, "Paperclip returned errors for file '#{attachment_file_name}' - check ImageMagick installation or image source file." false end end |