no need for https include on software.o.o
[opensuse:software-o-o.git] / app / models / missing_codec.rb
1 class MissingCodec < ActiveRecord::Base
2   belongs_to :visitor
3   attr_accessor :description
4   validates_inclusion_of :framework, :in => ['gstreamer', 'xine']
5
6   def self.from_array(a)
7     new(:framework => a[0],
8         :framework_version => a[1],
9         :description => a[3],
10         :fourcc => a[4])
11   end
12   
13   def display_framework
14     if framework == "gstreamer"
15       return "GStreamer"
16     else
17       return framework.titlecase
18     end
19   end
20 end
21