summaryrefslogtreecommitdiff
path: root/Gemfile.rails5.lock
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-11-12 13:50:31 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2018-11-12 13:50:31 +0100
commit9aa705dd38045b1121557faddf789ce8e114fc7d (patch)
treef5915719950036b47bd5c75e2dcaac3a5e8c380c /Gemfile.rails5.lock
parentf5e3ce5ed612c9b247e362ed7c667557331e5bfd (diff)
downloadgitlab-ce-9aa705dd38045b1121557faddf789ce8e114fc7d.tar.gz
Turn reference regex constants into methods
`Mentionable::ReferenceRegexes` used to define the following two constants: 1. DEFAULT_PATTERN 2. EXTERNAL_PATTERN These two constants were built using some of the class methods that reside in this same module. In EE we redefine one of these methods by using `prepend` at the start of the `ReferenceRegexes` module. This poses a problem: we can not move the `prepend` to the end of the file, because the constants later on depend on it. To resolve this problem, this commit turns these constants into class methods that memoize their results. This allows EE to redefine the appropriate methods before these two class methods are used, in turn allowing us to move the `prepend` to the end of the file. See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8198 for more information.
Diffstat (limited to 'Gemfile.rails5.lock')
0 files changed, 0 insertions, 0 deletions