class RuboCop::Cop::Rails::Presence

def build_source_for_or_method(other)

def build_source_for_or_method(other)
  if other.parenthesized? || other.method?('[]') || other.arithmetic_operation? || !other.arguments?
    " || #{other.source}"
  else
    method = method_range(other).source
    arguments = other.arguments.map(&:source).join(', ')
    " || #{method}(#{arguments})"
  end
end