Sha256: 64518519c96be722fa685a5d8d88c8c4300937835d34e4b14eba621d4bd064ac

Contents?: true

Size: 436 Bytes

Versions: 3

Compression:

Stored size: 436 Bytes

Contents

module Polygallery
  class Photo < ActiveRecord::Base

    has_attached_file :photo, :styles => { :full => "1200x900>", :big_slide => "1200x600#", :medium => "480x270>", :slide => "550x260#", :grid =>  "260x172#", :thumb => "100x100#"}, :default_url => '/images/:style/missing.png'
    validates_attachment_content_type :photo, :content_type => /\Aimage\/.*\Z/

    belongs_to :gallery, :class_name => 'Polygallery::Gallery'

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polygallery-0.0.3 app/models/polygallery/photo.rb
polygallery-0.0.2 app/models/polygallery/photo.rb
polygallery-0.0.1 app/models/polygallery/photo.rb