Skip to content
Extraits de code Groupes Projets
Valider 101727f3 rédigé par echarp's avatar echarp
Parcourir les fichiers

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

parent 46f4316b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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|
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter