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.58 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.57 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.56 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.55 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.54 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.53 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.52 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.51 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.50 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.49 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.48 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.47 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.46 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.45 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.44 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.43 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.42 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.41 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.40 lib/generators/phocoder_rails/templates/model.rb
phocoder-rails-0.0.39 lib/generators/phocoder_rails/templates/model.rb