Sha256: c2fdae67dd3f1419c1ce68e9dff9caa3793e79bb8d4aec8864b3fb22bbb828d0

Contents?: true

Size: 494 Bytes

Versions: 5

Compression:

Stored size: 494 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
railscart-0.0.4 starter_app/vendor/plugins/railscart/app/models/image.rb
spree-0.0.5 starter-app/vendor/plugins/spree/app/models/image.rb
spree-0.0.6 starter-app/vendor/plugins/spree/app/models/image.rb
spree-0.0.7 starter-app/vendor/plugins/spree/app/models/image.rb
spree-0.0.8 starter-app/vendor/plugins/spree/app/models/image.rb