From 101727f39a96becf952a2517a6e0ebf32bbdf530 Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 10 Nov 2015 23:49:15 +0100 Subject: [PATCH] Correction so that the global map is not limited to only one week, as for the digest --- app/controllers/maps_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/maps_controller.rb b/app/controllers/maps_controller.rb index 534bc8fb..72f199d9 100644 --- a/app/controllers/maps_controller.rb +++ b/app/controllers/maps_controller.rb @@ -4,10 +4,7 @@ class MapsController < ApplicationController has_scope :region, :locality, :tag, :daylimit has_scope :future, type: :boolean, default: true - has_scope :period, allow_blank: true, - type: :hash, using: [:year, :week], - default: { year: (Time.zone.today + 7.days).year, - week: (Time.zone.today + 7.days).cweek } + has_scope :period, type: :hash, using: [:year, :week] def index respond_to do |format|