Sha256: 4fb68bc29886e54a3492c843b67791702f03f0b7e05d04a8d9506cc79aa62b00
Contents?: true
Size: 893 Bytes
Versions: 2
Compression:
Stored size: 893 Bytes
Contents
class BasePost < ActiveRecord::Base self.table_name = 'posts' end class Post < BasePost has_attached_file :image, :url => "/system/:class/:attachment/:id/:locale/:style-:fingerprint.:extension" translates :image_file_name, :image_content_type, :image_file_size, :image_updated_at, :image_fingerprint end class OnlyProcessPost < BasePost has_attached_file :image, :url => "/system/:class/:attachment/:id/:locale/:style-:fingerprint.:extension", :styles => { :thumb => "10x10", :large => "40x40" }, :only_process => [:thumb] translates :image_file_name, :image_content_type, :image_file_size, :image_updated_at, :image_fingerprint end class Untranslated < ActiveRecord::Base has_attached_file :image, :url => "/system/:class/:attachment/:id/:style-:fingerprint.:extension" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paperclip-globalize3-1.1.0 | spec/data/models.rb |
paperclip-globalize3-1.0.0 | spec/data/models.rb |