method
blank?
rails 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
blank?()Returns true if an attachment is not attached.
class User < ApplicationRecord has_one_attached :avatar end User.new.avatar.blank? # => true