Skip to content

Commit

Permalink
Preload tag_group in projects query on projects controller
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerpbts committed Dec 27, 2017
1 parent 2382f4e commit 9d0dbd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [Unreleased]
### Fixed
- Add jquery-ui to fit cloudinary-js missing dependency
- Preload tag_group in projects query on projects controller

## [1.16.0] 2017-11-28
### Added
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/projects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ProjectsController < ApplicationController
def index
@projects = {}

projects_joined = policy_scope(Project)
projects_joined = policy_scope(Project).preload(:tag_group)

@projects = {
joined: serialize_from_collection(projects_joined)
Expand Down

0 comments on commit 9d0dbd6

Please sign in to comment.