Sha256: 12f919302291749b9c36148f7ff87fb47d4d41c1597e6dae5b02969cca76d336

Contents?: true

Size: 836 Bytes

Versions: 26

Compression:

Stored size: 836 Bytes

Contents

class <%= name.classify %> < ActiveRecord::Base

  acts_as_phocodable :thumbnail_class => "<%= name.classify %>Thumbnail", 
    :thumbnails => [
      {:label=>"small",:width=>100,:height=>100 },
      {:label=>"medium",:width=>400,:height=>400, 
        :frame=>{ :width=>20, :bottom=>50, :color=>'003' }, 
        :annotations=>[
                        {:text=>"Annotation Testing",:pointsize=>30,:fill_color=>'fff',:gravity=>"South",:y=>10},
                        {:text=>"Howdy!",:pointsize=>10,:fill_color=>'ccc',:gravity=>"North",:y=>5}
                      ] 
      }
    ],
    
    :videos => [ {:label => 'mp4',:video_codec=>"h264" }, #, :thumbnails=>{ :number=>1, :start_at_first_frame=>1 } 
                 {:label => 'webm', :video_codec=>"vp8" },
                 {:label => 'ogv', :video_codec=>"theora" }
    ]

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
phocoder-rails-0.0.38 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.37 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.36 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.35 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.34 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.33 lib/generators/phocoder_rails/templates/model.rb