We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57f2524 + c0dbcfe commit 17c0219Copy full SHA for 17c0219
1 file changed
app/controllers/dashboard_controller.rb
@@ -87,7 +87,8 @@ def total_upcoming_events_count
87
end
88
89
def upcoming_events_for_user
90
- chapter_workshops = Workshop.eager_load(:chapter, :sponsors, :organisers, :permissions)
+ chapter_workshops = Workshop.upcoming
91
+ .eager_load(:chapter, :sponsors, :organisers, :permissions)
92
.where(chapter: current_user.chapters)
93
.to_a
94
0 commit comments