| Module | Sitealizer |
| In: |
lib/sitealizer.rb
lib/sitealizer/parser.rb |
This is the before_filter method that you will call when using the Sitealizer Web Stats plugin
class ApplicationController < ActionController::Base
include Sitealizer
before_filter :use_sitealizer
end
# File lib/sitealizer.rb, line 46 def use_sitealizer $visits << request.env if $visits.size == SA_CONFIG['sitealizer']['queue_size'] thread = Thread.start{store_visits} thread.join $visits = [] end end