Sha256: 1caf3aaa70c89cc34cb1c75672a4c3e12699f942302e1e6bda67470522e6ab55

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 Bytes

Contents

class Image < ActiveRecord::Base
  belongs_to :viewable, :polymorphic => true
  acts_as_list :scope => :parent 
  has_attachment :content_type => :image,
                 :max_size => 500.kilobyte,
                 :thumbnails => { :mini => '48x48>', :small => '100x100>', :product => '240x240>' },
                 :path_prefix => 'public/images/products',
                 :storage => :file_system,
                 :processor => :MiniMagick
                 
  validates_as_attachment
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree-0.4.0 app/models/image.rb
spree-0.4.1 app/models/image.rb
spree-0.5.0 app/models/image.rb
spree-0.5.1 app/models/image.rb