We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4ed74e commit 35571beCopy full SHA for 35571be
app/controllers/home_controller.rb
@@ -8,7 +8,7 @@ class HomeController < ApplicationController
8
expose(:upcoming_topics) { Topic.ordered.upcoming }
9
expose(:done_topics) { Topic.ordered.done.limit(10) }
10
expose(:organizers) { User.organizers }
11
- expose(:locations) { Location.all }
+ expose(:locations) { Location.joins(:events).merge(Event.where(date: (2.years.ago.beginning_of_year)..)).distinct }
12
expose(:zoom) { Whitelabel[:location][:zoom] }
13
14
def index; end
0 commit comments