diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-04-13 09:47:52 +1000 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-04-13 09:47:52 +1000 |
commit | 8cf7065d98b942634ebd5f080fa3000cf53a430a (patch) | |
tree | b2c85820559138a3b294447c97c5cc7f6ac68c8b | |
parent | 88f843ddd5cb098b7771dd49cdb6d23a486dd05c (diff) | |
download | gitlab-ce-try-again-to-optimize-projects-for-imported-projects.tar.gz |
Disable rubocop on monkey patched ActiveRecord::Associations::Preloader::Associationtry-again-to-optimize-projects-for-imported-projects
This is because we want this code to be as close to the original as possible so it is easy to see what has changed and reduce risk of changing something by accident
-rw-r--r-- | config/initializers/active_record_preloader.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/initializers/active_record_preloader.rb b/config/initializers/active_record_preloader.rb index 6154eb1a318..5dc6030d551 100644 --- a/config/initializers/active_record_preloader.rb +++ b/config/initializers/active_record_preloader.rb @@ -14,7 +14,7 @@ module ActiveRecord end end - +# rubocop:disable all class ActiveRecord::Associations::Preloader::Association def build_scope scope = klass.unscoped @@ -55,3 +55,4 @@ class ActiveRecord::Associations::Preloader::Association klass.default_scoped.merge(scope) end end +# rubocop:enable all |