Sha256: 953c4074e374601619887fcabc25fbc79b802488ab509778cac6a96cce419a38
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
module Quadro class Asset::Cover < Asset # attributes store :settings, accessors: [:width, :height, :alt] # attr_accessible :width, :height, :alt has_attached_file :attachment, styles: { thumb: '200x200#', small: '800x600>', medium: '1024x768>', large: '1280x1024>' }, default_url: 'quadro/missing/cover/: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 'cover' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quadro-0.6.1 | app/models/quadro/asset/cover.rb |