Correction so that the global map is not limited to only one week, as for the digest
This commit is contained in:
parent
46f4316b05
commit
101727f39a
@ -4,10 +4,7 @@
|
|||||||
class MapsController < ApplicationController
|
class MapsController < ApplicationController
|
||||||
has_scope :region, :locality, :tag, :daylimit
|
has_scope :region, :locality, :tag, :daylimit
|
||||||
has_scope :future, type: :boolean, default: true
|
has_scope :future, type: :boolean, default: true
|
||||||
has_scope :period, allow_blank: true,
|
has_scope :period, type: :hash, using: [:year, :week]
|
||||||
type: :hash, using: [:year, :week],
|
|
||||||
default: { year: (Time.zone.today + 7.days).year,
|
|
||||||
week: (Time.zone.today + 7.days).cweek }
|
|
||||||
|
|
||||||
def index
|
def index
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
Loading…
Reference in New Issue
Block a user