Initial revision of the codecs module
[opensuse:software-o-o.git] / app / controllers / codecs_controller.rb
1 class CodecsController < ApplicationController 
2   def index
3     @missing_codecs = []
4     @application = nil
5
6     params.each do | k, v |
7       if k.starts_with?("plugin")
8         m = MissingCodec.new(v.split("|"))
9         @missing_codecs << m
10         if @application == nil
11           @application = m.application
12         end
13       end
14     end
15   end
16 end
17