diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-14 15:08:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-14 15:08:21 +0300 |
commit | 674e7e2c3d295704bdf504dd0caa2e5a2d9b5cd2 (patch) | |
tree | 7454890d4f7aa8644c9e89954a978466e4416815 /app/models/members_preloader.rb | |
parent | c7ad2610df033b370845995ac3bbe269a191d9bb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/members_preloader.rb')
-rw-r--r-- | app/models/members_preloader.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/members_preloader.rb b/app/models/members_preloader.rb index 1ed0434eacf..6da8d5f3161 100644 --- a/app/models/members_preloader.rb +++ b/app/models/members_preloader.rb @@ -1,8 +1,6 @@ # frozen_string_literal: true class MembersPreloader - prepend_if_ee('EE::MembersPreloader') # rubocop: disable Cop/InjectEnterpriseEditionModule - attr_reader :members def initialize(members) @@ -16,3 +14,5 @@ class MembersPreloader ActiveRecord::Associations::Preloader.new.preload(members.map(&:user), :u2f_registrations) end end + +MembersPreloader.prepend_if_ee('EE::MembersPreloader') |