2013-01-08 04:36:50 +00:00
|
|
|
class UpdateTagCloud
|
|
|
|
@queue = :high
|
|
|
|
|
|
|
|
def self.perform()
|
|
|
|
Tag.all.each do |tag|
|
2013-07-19 08:59:08 +00:00
|
|
|
tag.update_attribute(:cloud_view_count, tag.get_impressionist)
|
2013-01-08 04:36:50 +00:00
|
|
|
end
|
2013-05-14 02:29:11 +00:00
|
|
|
OrbitLogger.info "UpdateTagCloud Done"
|
2013-01-08 04:36:50 +00:00
|
|
|
end
|
|
|
|
end
|