method

attached?

rails latest stable - Class: ActiveStorage::Attached::Many
attached?()
public

Returns true if any attachments have been made.

class Gallery < ApplicationRecord
  has_many_attached :photos
end

Gallery.new.photos.attached? # => false