Skip to content

Commit 7126055

Browse files
committed
Use Range#first instead
1 parent b90cb38 commit 7126055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/static_pages_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def stats
2323
Dojo
2424
.distinct
2525
.joins(:dojo_event_services)
26-
.where(created_at: Time.zone.local(2012).beginning_of_year..Time.zone.local(year).end_of_year)
26+
.where(created_at: Time.zone.local(@range.first).beginning_of_year..Time.zone.local(year).end_of_year)
2727
.count
2828
@events[year] =
2929
EventHistory.where(evented_at:

0 commit comments

Comments
 (0)