mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-05 23:41:48 +01:00
Extract methods in tag cloud
This gets rid of the compute method, and makes each value that got set in it its own little method.
This commit is contained in:
parent
447178bd7d
commit
61e04a8258
2 changed files with 30 additions and 15 deletions
|
|
@ -553,14 +553,12 @@ class StatsController < ApplicationController
|
|||
|
||||
def get_stats_tags
|
||||
cloud = Stats::TagCloud.new(current_user)
|
||||
cloud.compute
|
||||
|
||||
@tags_for_cloud = cloud.tags
|
||||
@tags_min = cloud.min
|
||||
@tags_divisor = cloud.divisor
|
||||
|
||||
cloud = Stats::TagCloud.new(current_user, @cut_off_3months)
|
||||
cloud.compute
|
||||
@tags_for_cloud_90days = cloud.tags
|
||||
@tags_min_90days = cloud.min
|
||||
@tags_divisor_90days = cloud.divisor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue