Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Duncalfe <lduncalfe@eml.cc>2019-05-20 08:13:29 +0300
committerLuke Duncalfe <lduncalfe@eml.cc>2019-05-22 02:37:46 +0300
commit3783c23457adaa4a1f97ffd0891a1a5a8d02f188 (patch)
treed04f149ae9397185a0409f5d09dc9ee00c18357b /rubocop
parente6d87e2214c3f49f0acf281f42f3b5ecd42bc85a (diff)
Link to issue in CodeReuse/ActiveRecord message
This provides the user with some context as to why certain ActiveRecord methods are blacklisted.
Diffstat (limited to 'rubocop')
-rw-r--r--rubocop/cop/code_reuse/active_record.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/rubocop/cop/code_reuse/active_record.rb b/rubocop/cop/code_reuse/active_record.rb
index 2be8f7c11aa..1e650abfceb 100644
--- a/rubocop/cop/code_reuse/active_record.rb
+++ b/rubocop/cop/code_reuse/active_record.rb
@@ -9,7 +9,8 @@ module RuboCop
class ActiveRecord < RuboCop::Cop::Cop
include CodeReuseHelpers
- MSG = 'This method can only be used inside an ActiveRecord model'
+ MSG = 'This method can only be used inside an ActiveRecord model: ' \
+ 'https://gitlab.com/gitlab-org/gitlab-ce/issues/49653'
# Various methods from ActiveRecord::Querying that are blacklisted. We
# exclude some generic ones such as `any?` and `first`, as these may