Sha256: 5ba60d770c36c0c9c64c98e8a8e7e413f72fb8cea691226b55937fdffee11874
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
class Upload < ActiveRecord::Base acts_as_uploader :enable_s3 => false, :has_attached_file => { :url => "/system/:attachment/:id_partition/:style/:basename.:extension", :path => ":rails_root/public/system/:attachment/:id_partition/:style/:basename.:extension", :styles => { :icon => "30x30!", :thumb => "100>", :small => "150>", :medium => "300>", :large => "660>" }, :default_url => "/images/profile_default.jpg", :storage => :s3, :s3_credentials => AMAZON_S3_CREDENTIALS, :bucket => "assets.#{GlobalConfig.application_url}", :s3_host_alias => "assets.#{GlobalConfig.application_url}", :convert_options => { :all => '-quality 80' } } validates_attachment_presence :local def can_edit?(user) return true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uploader-0.1.13 | test/rails_root/app/models/upload.rb |
uploader-0.1.12 | test/rails_root/app/models/upload.rb |
uploader-0.1.14 | test/rails_root/app/models/upload.rb |