mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-25 19:48:48 +01:00
Merge pull request #170 from kytrinyx/rename-index-page
Use a more appropriate name for stats domain object
This commit is contained in:
commit
01f7af89dd
2 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ class StatsController < ApplicationController
|
|||
def index
|
||||
@page_title = t('stats.index_title')
|
||||
@hidden_contexts = current_user.contexts.hidden
|
||||
@stats = Stats::IndexPage.new(current_user)
|
||||
@stats = Stats::UserStats.new(current_user)
|
||||
end
|
||||
|
||||
def actions_done_last12months_data
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
module Stats
|
||||
class IndexPage
|
||||
class UserStats
|
||||
|
||||
attr_reader :user
|
||||
def initialize(user)
|
||||
Loading…
Add table
Add a link
Reference in a new issue