Explain why we need Prependable

This commit is contained in:
Lin Jen-Shin 2018-08-31 03:28:59 +08:00
parent d548d81990
commit d6c4bc4688
1 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,13 @@
# frozen_string_literal: true # 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 # rubocop:disable Gitlab/ModuleWithInstanceVariables
module Gitlab module Gitlab
module Patch module Patch