We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Rails/DynamicFindBy
1 parent 1063b3e commit 313cd20Copy full SHA for 313cd20
lib/rubocop/cop/rails/dynamic_find_by.rb
@@ -22,14 +22,14 @@ module Rails
22
# User.find_by(name: name, email: email)
23
# User.find_by!(email: email)
24
#
25
- # @example AllowedMethods: find_by_sql
+ # @example AllowedMethods: ['find_by_sql'] (default)
26
# # bad
27
# User.find_by_query(users_query)
28
29
# # good
30
# User.find_by_sql(users_sql)
31
32
- # @example AllowedReceivers: Gem::Specification
+ # @example AllowedReceivers: ['Gem::Specification'] (default)
33
34
# Specification.find_by_name('backend').gem_dir
35
0 commit comments