From d98327a913b6a22e9af41e14afffe02843dfefe0 Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 25 Nov 2014 19:54:20 +0100 Subject: [PATCH] =?UTF-8?q?On=20peut=20maintenant=20visualiser=20une=20car?= =?UTF-8?q?te=20avec=20les=20=C3=A9v=C3=A9nements=20du=20futur=20et=20du?= =?UTF-8?q?=20pass=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/maps_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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