lib/rubocop/cop/rails/where_exists.rb in rubocop-rails-2.14.2 vs lib/rubocop/cop/rails/where_exists.rb in rubocop-rails-2.15.0
- old
+ new
@@ -1,19 +1,19 @@
# frozen_string_literal: true
module RuboCop
module Cop
module Rails
- # This cop enforces consistent style when using `exists?`.
+ # Enforces consistent style when using `exists?`.
#
# Two styles are supported for this cop. When EnforcedStyle is 'exists'
# then the cop enforces `exists?(...)` over `where(...).exists?`.
#
# When EnforcedStyle is 'where' then the cop enforces
# `where(...).exists?` over `exists?(...)`.
#
# @safety
- # This cop is unsafe for auto-correction because the behavior may change on the following case:
+ # This cop is unsafe for autocorrection because the behavior may change on the following case:
#
# [source,ruby]
# ----
# Author.includes(:articles).where(articles: {id: id}).exists?
# #=> Perform `eager_load` behavior (`LEFT JOIN` query) and get result.