# File lib/paperclip/matchers/validate_attachment_content_type_matcher.rb, line 49 def negative_failure_message "".tap do |str| str << "Content types #{@allowed_types.join(", ")} should be rejected" if @allowed_types.present? str << "\n" if @allowed_types.present? && @rejected_types.present? str << "Content types #{@rejected_types.join(", ")} should be accepted by #{@attachment_name}" if @rejected_types.present? end end