Sha256: 8892308e3ee9639940adfd9585163b8ff02ac901952e7091afe8b82c64c214e3
Contents?: true
Size: 451 Bytes
Versions: 7
Compression:
Stored size: 451 Bytes
Contents
class Ckeditor::Picture < Ckeditor::Asset has_attached_file :data, :storage => :s3, :s3_credentials => "#{Rails.root}/config/amazon_s3.yml", :path => ":class/:id/:basename.:extension", :styles => { :content => '800>', :thumb => '118x100#' } validates_attachment_size :data, :less_than => 2.megabytes validates_attachment_presence :data def url_content url(:content) end end
Version data entries
7 entries across 7 versions & 1 rubygems