Correction so that the global map is not limited to only one week, as for the digest

This commit is contained in:
echarp 2015-11-10 23:49:15 +01:00
parent 46f4316b05
commit 101727f39a

View File

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