diff --git a/app/controllers/maps_controller.rb b/app/controllers/maps_controller.rb index 1f0b5143..afd5c6d4 100644 --- a/app/controllers/maps_controller.rb +++ b/app/controllers/maps_controller.rb @@ -3,11 +3,12 @@ # Access to OSM controls class MapsController < ApplicationController has_scope :region, :locality, :tag + has_scope :future, type: :boolean, default: true def index respond_to do |format| format.html { render layout: 'iframe' if params[:iframe] } - format.json { render json: apply_scopes(Event.moderated.future.geo) } + format.json { render json: apply_scopes(Event.moderated.geo) } end end end