eager load notification associations for dropdown
This commit is contained in:
parent
19e5837ce5
commit
175ad4a83b
|
@ -1,4 +1,4 @@
|
|||
- notifications = Notification.for(current_user).where(new: true).limit(4)
|
||||
- notifications = Notification.for(current_user).where(new: true).includes([:target]).limit(4)
|
||||
= render 'navigation/desktop', notifications: notifications
|
||||
= render 'navigation/mobile', notifications: notifications
|
||||
|
||||
|
|
Loading…
Reference in New Issue