ramonrails said about 7 years ago on WYSIWYG Editor with Summernote :

Should you also include this in the notes?

class Image < ApplicationRecord # :nodoc:
  attachment :image, type: :image
end