method
blank?
v7.2.3 -
Show latest stable
- Class:
ActiveStorage::Attached::One
blank?()public
Returns true if an attachment is not attached.
class User < ApplicationRecord has_one_attached :avatar end User.new.avatar.blank? # => true