Skip to content

Commit 313cd20

Browse files
committed
Tweak the doc for Rails/DynamicFindBy
1 parent 1063b3e commit 313cd20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rubocop/cop/rails/dynamic_find_by.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ module Rails
2222
# User.find_by(name: name, email: email)
2323
# User.find_by!(email: email)
2424
#
25-
# @example AllowedMethods: find_by_sql
25+
# @example AllowedMethods: ['find_by_sql'] (default)
2626
# # bad
2727
# User.find_by_query(users_query)
2828
#
2929
# # good
3030
# User.find_by_sql(users_sql)
3131
#
32-
# @example AllowedReceivers: Gem::Specification
32+
# @example AllowedReceivers: ['Gem::Specification'] (default)
3333
# # bad
3434
# Specification.find_by_name('backend').gem_dir
3535
#

0 commit comments

Comments
 (0)