method

attached?

Importance_1
v5.2.3 - Show latest stable - 0 notes - Class: Many
attached?() public

Returns true if any attachments has been made.

class Gallery < ActiveRecord::Base
  has_many_attached :photos
end

Gallery.new.photos.attached? # => false
Show source
Register or log in to add new notes.