stop storing visitors - only increases our mysql storage
[opensuse:software-o-o.git] / app / controllers / codecs_controller.rb
1 class CodecsController < ApplicationController
2   def index
3     @visitor = Visitor.new(
4         :os_release => params["os_release"],
5         :language => params["lang"],
6         :client_version => params["client_version"],
7         :kernel => params["kernel"],
8         :gstreamer_package => params["gstreamer"],
9         :xine_package => params["xine"],
10         :user_agent => request.user_agent,
11         :ip_address => request.remote_ip
12     )
13
14     params.each do | k, v |
15       if k.starts_with?("plugin")
16         a = v.split("|")
17         @visitor.missing_codecs << MissingCodec.new(a)
18         @visitor.application ||= a[2]
19       end
20     end
21
22   end
23 end
24