Skip to content

Commit 58c62cb

Browse files
authored
Merge pull request #1099 from leonelgalan/patch-1
Update cops_rails.adoc - Removes invalid example
2 parents 9d1a400 + 5d9406d commit 58c62cb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/rubocop/cop/rails/where_exists.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ module Rails
3939
# # bad
4040
# User.exists?(name: 'john')
4141
# User.exists?(['name = ?', 'john'])
42-
# User.exists?('name = ?', 'john')
4342
# user.posts.exists?(published: true)
4443
#
4544
# # good

0 commit comments

Comments
 (0)