On peut maintenant visualiser une carte avec les événements du futur et du passé

This commit is contained in:
echarp 2014-11-25 19:54:20 +01:00
parent f41e5ed054
commit d98327a913
1 changed files with 2 additions and 1 deletions

View File

@ -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