Sha256: 070a2c024db28123e143a876b5b584d7f70a4b0e1993fcc893a1028a3f64dd8e
Contents?: true
Size: 653 Bytes
Versions: 1
Compression:
Stored size: 653 Bytes
Contents
module Quadro class Asset::Slide < Asset # attributes store :settings, accessors: [:width, :height, :alt, :href] # attr_accessible :width, :height, :alt, :href has_attached_file :attachment, styles: { thumb: '200x200#', small: '640x480>', medium: '800x600>', large: '1024x768>' }, default_url: 'quadro/missing/slide/:style.png', use_timestamp: false # validations validates :alt, length: { maximum: 60 } validates_attachment :attachment, content_type: { content_type: ['image/jpg', 'image/jpeg', 'image/png', 'image/gif'] } # methods class << self def short_name 'slide' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quadro-0.6.1 | app/models/quadro/asset/slide.rb |