Sha256: 2b454020b46fb7d566acf940c6dfd3404bb795510990541827d10317453c005a
Contents?: true
Size: 578 Bytes
Versions: 8
Compression:
Stored size: 578 Bytes
Contents
module Quadro class Asset::Image < Asset # attributes store :settings, accessors: [:width, :height, :alt] attr_accessible :width, :height, :alt has_attached_file :attachment, styles: { thumb: '200x200#', small: '320x240>', medium: '640x480>', large: '800x600>' }, default_url: '/assets/quadro/missing/image/:style.png' # validations validates_attachment :attachment, content_type: { content_type: ['image/jpg', 'image/jpeg', 'image/png', 'image/gif'] } # methods class << self def short_name 'image' end end end end
Version data entries
8 entries across 8 versions & 1 rubygems