Method: Paperclip::Shoulda::Matchers::ValidateAttachmentContentTypeMatcher#failure_message

Defined in:
lib/paperclip/matchers/validate_attachment_content_type_matcher.rb

#failure_messageObject



39
40
41
42
# File 'lib/paperclip/matchers/validate_attachment_content_type_matcher.rb', line 39

def failure_message
  "Content types #{@allowed_types.join(", ")} should be accepted" +
  " and #{@rejected_types.join(", ")} rejected by #{@attachment_name}"
end