Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
257f4eaa
Commit
257f4eaa
authored
May 31, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not try to preload Commits when using Note.includes(:noteable)
parent
e53169c9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
config/initializers/active_record_locking.rb
config/initializers/active_record_locking.rb
+0
-0
config/initializers/active_record_preloader.rb
config/initializers/active_record_preloader.rb
+15
-0
No files found.
config/initializers/a
r_monkey_patch
.rb
→
config/initializers/a
ctive_record_locking
.rb
View file @
257f4eaa
File moved
config/initializers/active_record_preloader.rb
0 → 100644
View file @
257f4eaa
module
ActiveRecord
module
Associations
class
Preloader
module
NoCommitPreloader
def
preloader_for
(
reflection
,
owners
,
rhs_klass
)
return
NullPreloader
if
rhs_klass
==
::
Commit
super
end
end
prepend
NoCommitPreloader
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment