Module Admin::StatsHelper
In: app/helpers/admin/stats_helper.rb

Methods

Public Instance methods

[Source]

    # File app/helpers/admin/stats_helper.rb, line 7
 7:   def link_to_rss(rss)
 8:     if m = rss.match(/\?u=(\d+)$/)
 9:       return rss.sub(m[1], link_to(m[1], admin_user_path(:id => m[1]))) 
10:     elsif m = rss.match(/^\/e[sun]\/news\/(\d+).*\/comments\.rss$/)
11:       return rss.sub(m[1], link_to(m[1], news_path(:id => m[1])))
12:     else
13:       return rss
14:     end
15:   end

[Source]

   # File app/helpers/admin/stats_helper.rb, line 3
3:   def short_url(url)
4:     url.length > 50 ? "#{url[0..49]}..." : url
5:   end

[Validate]