Sha256: cdfcca0bfd6c291cbab8c625e0e0d94f20122970b1503f167fe0c8e28362b2af

Contents?: true

Size: 330 Bytes

Versions: 8

Compression:

Stored size: 330 Bytes

Contents

module FlyAdmin
  module VideosHelper
    def converted_percents(video)
      percents = 0
      4.times do |i|
        percents+=((video.encode_mask >> i) & 1)*25
      end
      percents.to_i
    end
    # without extension
    def video_title(title)
      File.basename(title, File.extname(title))[0..200]
    end   
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fly_admin-0.0.8 app/helpers/fly_admin/videos_helper.rb
fly_admin-0.0.7 app/helpers/fly_admin/videos_helper.rb
fly_admin-0.0.6 app/helpers/fly_admin/videos_helper.rb
fly_admin-0.0.5 app/helpers/fly_admin/videos_helper.rb
fly_admin-0.0.4 app/helpers/fly_admin/videos_helper.rb
fly_admin-0.0.3 app/helpers/fly_admin/videos_helper.rb
fly_admin-0.0.2 app/helpers/fly_admin/videos_helper.rb
fly_admin-0.0.1 app/helpers/fly_admin/videos_helper.rb