From d8a158c56dc2c3cca9e3f0881853d5c7d8466210 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Sat, 24 Jun 2017 13:37:47 +1000 Subject: [PATCH] Rubocop: Update comment on Rails/DynamicFindBy, justifying Enabled: false --- .rubocop.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 8ddda9832c..a56ff3b145 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -42,7 +42,8 @@ Lint/UselessAssignment: Exclude: - spec/**/* -# No alternative to this one until we upgrade to Rails 4 and can use #find_by +# AFAIK, there is no good alternative to dynamic matchers until we upgrade +# to Rails 4 and can use #find_by. If there is a better approach, let's do it. Rails/DynamicFindBy: Enabled: false