class RuboCop::Cop::Rails::Presence
def replacement(receiver, other)
def replacement(receiver, other) or_source = if other&.send_type? build_source_for_or_method(other) elsif other.nil? || other.nil_type? '' else " || #{other.source}" end "#{receiver.source}.presence" + or_source end