method

blank?

Importance_1
v7.1.3.4 - Show latest stable - 0 notes - Class: One
blank?() public

Returns true if an attachment is not attached.

class User < ApplicationRecord
  has_one_attached :avatar
end

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