Sha256: df8f452accaf2802778445d1313c7cac55c26cebb06f89907358b5b88d07b277

Contents?: true

Size: 371 Bytes

Versions: 11

Compression:

Stored size: 371 Bytes

Contents

class ProductImage < ActiveRecord::Base
  has_attached_file :image, :styles => {:thumbnail => "120x108#"}
  can_use_asset_for :image
  
  validates_attachment_presence :image
  validates_attachment_content_type :image, :content_type => ['image/gif', 'image/png', 'image/jpeg', 'image/jpg', 'image/pjpeg']

  # open up everything for mass assignment
  attr_protected

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/models/product_image.rb
forge-cli-0.1.9 lib/forge/app/models/product_image.rb
forge-cli-0.1.8 lib/forge/app/models/product_image.rb
forge-cli-0.1.7 lib/forge/app/models/product_image.rb
forge-cli-0.1.6 lib/forge/app/models/product_image.rb
forge-cli-0.1.5 lib/forge/app/models/product_image.rb
forge-cli-0.1.4 lib/forge/app/models/product_image.rb
forge-cli-0.1.3 lib/forge/app/models/product_image.rb
forge-cli-0.1.2 lib/forge/app/models/product_image.rb
forge-cli-0.1.1 lib/forge/app/models/product_image.rb
forge-cli-0.1.0 lib/forge/app/models/product_image.rb