Merge pull request #170 from kytrinyx/rename-index-page

Use a more appropriate name for stats domain object
This commit is contained in:
Matt Rogers 2013-03-05 06:51:59 -08:00
commit 01f7af89dd
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -1,5 +1,5 @@
module Stats
class IndexPage
class UserStats
attr_reader :user
def initialize(user)