mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
7 lines
177 B
Ruby
7 lines
177 B
Ruby
class StatsController < ApplicationController
|
|
before_action :authenticate_user!
|
|
|
|
def index
|
|
@stats = current_user.stats.group_by(&:year).sort_by { _1 }.reverse
|
|
end
|
|
end
|