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