Sha256: 59ca4e949838df28656900e7801dd36ef5f8deb2b60c868f2b6cef94e448816f
Contents?: true
Size: 327 Bytes
Versions: 5
Compression:
Stored size: 327 Bytes
Contents
class Image < ActiveRecord::Base attr_accessible :file, :position has_attached_file :file, styles: {small: '240x240>', large: '600x600>'} validates_attachment :file, presence: true, content_type: { content_type: ['image/jpg', 'image/png', 'image/gif', 'image/jpeg'] } belongs_to :viewable, :polymorphic => true end
Version data entries
5 entries across 5 versions & 1 rubygems