Use tag cloud objects in view

This allows us to not set the individual instance variables for the tag
cloud attributes.
This commit is contained in:
Katrina Owen 2013-02-28 22:00:23 -05:00
parent 61e04a8258
commit b5868d5c70
3 changed files with 11 additions and 19 deletions

View file

@ -552,16 +552,8 @@ class StatsController < ApplicationController
end
def get_stats_tags
cloud = Stats::TagCloud.new(current_user)
@tags_for_cloud = cloud.tags
@tags_min = cloud.min
@tags_divisor = cloud.divisor
cloud = Stats::TagCloud.new(current_user, @cut_off_3months)
@tags_for_cloud_90days = cloud.tags
@tags_min_90days = cloud.min
@tags_divisor_90days = cloud.divisor
@tag_cloud = Stats::TagCloud.new(current_user)
@tag_cloud_90days = Stats::TagCloud.new(current_user, @cut_off_3months)
end
def get_ids_from (actions, week_from, week_to, at_end)