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:
authorLin Jen-Shin <godfat@godfat.org>2018-08-30 22:28:59 +0300
committerLin Jen-Shin <godfat@godfat.org>2018-09-11 13:45:49 +0300
commitd6c4bc468872c0c3ecf2792a52e801e67bafccd7 (patch)
tree8b4e14d20dad44d3ea634d2ad43d9ef00b070687 /lib/gitlab/patch
parentd548d8199033cfb0e067dfe2c32ff2397386088d (diff)
Explain why we need Prependable
Diffstat (limited to 'lib/gitlab/patch')
-rw-r--r--lib/gitlab/patch/prependable.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/patch/prependable.rb b/lib/gitlab/patch/prependable.rb
index 617c6eeacd2..a9f6cfb19cb 100644
--- a/lib/gitlab/patch/prependable.rb
+++ b/lib/gitlab/patch/prependable.rb
@@ -1,5 +1,13 @@
# frozen_string_literal: true
+# We're patching `ActiveSupport::Concern` in
+# config/initializers/0_as_concern.rb
+#
+# We want to patch `ActiveSupport::Concern` for two reasons:
+# 1. Allow defining class methods via: `class_methods` method
+# 2. Allow `prepended do; end` work like `included do; end`
+# If we don't need anything above, we don't need this patch nor the concern!
+
# rubocop:disable Gitlab/ModuleWithInstanceVariables
module Gitlab
module Patch