diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-12-18 16:22:52 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-12-18 16:22:52 +0100 |
commit | 3a39c818c5782e2dd067248e86d7f082c9f51715 (patch) | |
tree | da56a1dba9ffd0e29ad52859bd620a57ef1becb7 /config | |
parent | aa7c927e1e4f114fea381d3856d195319f0ca0a1 (diff) | |
download | gitlab-ce-3a39c818c5782e2dd067248e86d7f082c9f51715.tar.gz |
Load the devise initializer before metrics
Metrics tries to initialize the `EventsFinder` to instrumnt it. The `EventsFinder` tries to load the `Event` model, which in turn loads the `User` model.
Loading the `User` model requires Devise to be initialized. So to avoid problems around this, we load devise before loading metrics.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/8_devise.rb (renamed from config/initializers/devise.rb) | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/8_devise.rb index 67eabb0b4fc..67eabb0b4fc 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/8_devise.rb |