method

attached?

Importance_1
v6.1.7.7 - Show latest stable - 0 notes - Class: One
attached?() public

Returns true if an attachment has been made.

class User < ApplicationRecord
  has_one_attached :avatar
end

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