don't count json and rss views towards traffic counter

This commit is contained in:
joshua stein 2012-12-16 20:01:39 -06:00
parent 175ff9d2b1
commit a7d463999d

View file

@ -16,7 +16,7 @@ class ApplicationController < ActionController::Base
def increase_traffic_counter
@traffic = 1.0
if user_is_spider?
if user_is_spider? || [ "json", "rss" ].include?(params[:format])
return true
end