Skip to content

Execute inflections initializer earlier

username-removed-283999 requested to merge fix/1892 into master

When metrics is enabled the config/initializers/8_metrics.rb runs before config/initializers/inflections.rb has a chance to set the acronyms, which causes some errors like LoadError: Unable to autoload constant Ee, expected /gitlab/lib/ee.rb to define it because the camelize method don't know them yet. This merge request makes sure that we set the acronyms before the metrics initializer runs. The commit that changed the order that metrics initializer runs ishttps://gitlab.com/gitlab-org/gitlab-ee/commit/ee318727774dbec75d5506a4b4749fc4236206d5

Close #1892 (closed)

/cc @nick.thomas @stanhu @smcgivern @adamniedzielski @rymai @twk3

Merge request reports