You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: paperclip_attachment.rb
    path of file: ./repos/solidus/core/app/models/spree/image
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Spree::Image::PaperclipAttachment
  extend ActiveSupport::Concern

  included do
    validate :no_at
    
  def no_attachment_errors
    unless attachment.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