mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-30 22:08:49 +01:00
Inline helper method
This commit is contained in:
parent
615a9e46c9
commit
ac4a483b18
1 changed files with 4 additions and 10 deletions
|
|
@ -12,8 +12,10 @@ class StatsController < ApplicationController
|
|||
@totals = Stats::Totals.new(current_user)
|
||||
@projects = Stats::Projects.new(current_user)
|
||||
@contexts = Stats::Contexts.new(current_user)
|
||||
|
||||
get_stats_tags
|
||||
tags = Stats::TagCloudQuery.new(current_user).result
|
||||
@tag_cloud = Stats::TagCloud.new(tags)
|
||||
tags = Stats::TagCloudQuery.new(current_user, @cut_off_3months).result
|
||||
@tag_cloud_90days = Stats::TagCloud.new(tags)
|
||||
end
|
||||
|
||||
def actions_done_last12months_data
|
||||
|
|
@ -383,14 +385,6 @@ class StatsController < ApplicationController
|
|||
@cut_off_3months = 3.months.ago.beginning_of_day
|
||||
end
|
||||
|
||||
def get_stats_tags
|
||||
tags = Stats::TagCloudQuery.new(current_user).result
|
||||
@tag_cloud = Stats::TagCloud.new(tags)
|
||||
|
||||
tags = Stats::TagCloudQuery.new(current_user, @cut_off_3months).result
|
||||
@tag_cloud_90days = Stats::TagCloud.new(tags)
|
||||
end
|
||||
|
||||
def get_ids_from (actions, week_from, week_to, at_end)
|
||||
selected_todo_ids = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue