diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-03-22 23:57:40 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-03-22 23:58:53 +0800 |
commit | c11825a2fc6f5dd0b7bc4033a34789c7d2445970 (patch) | |
tree | 170208cddece3e96dd4ed4e8738c1193df3ed047 /config/application.rb | |
parent | e3bf4931de8a1c180f68fe99a7667a993711de59 (diff) | |
download | gitlab-ce-c11825a2fc6f5dd0b7bc4033a34789c7d2445970.tar.gz |
Force Rails to not complain about reloading
Same strategy with:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17810
See:
https://stackoverflow.com/a/29710188/1992201
Frankly I don't really understand how this works and I don't really
care either. However I tried it and it does the job. To try this,
make sure you have pending migrations, and run the server, hit the site.
It would tell you that there's pending migrations, and then run
migrations, and then hit the site again.
Without this patch, Rails would complain that "A copy of ...",
with this patch, it works without problems.
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index 0ff95e33a9c..13501d4bdb5 100644 --- a/config/application.rb +++ b/config/application.rb @@ -170,7 +170,7 @@ module Gitlab ENV['GIT_TERMINAL_PROMPT'] = '0' # Gitlab Read-only middleware support - config.middleware.insert_after ActionDispatch::Flash, 'Gitlab::Middleware::ReadOnly' + config.middleware.insert_after ActionDispatch::Flash, '::Gitlab::Middleware::ReadOnly' config.generators do |g| g.factory_bot false |