class Wco::Video

def self.list

def self.list
  [['', nil]] + self.unscoped.order_by( :created_at => :desc ).map do |item|
    [ "#{item.created_at.strftime('%Y%m%d')} #{item.name}", item.id ]
  end
end

def export_fields

def export_fields
  %w| name descr |
end

def published

def published
  where({ :is_public => true }).order_by({ :created_at => :desc })
end