Sha256: af30400fd02c50225a92f290bc190f4c3a985ca86d7b6b63bb824169c5523bcb
Contents?: true
Size: 278 Bytes
Versions: 7
Compression:
Stored size: 278 Bytes
Contents
require "mongo_mapper" variants = { :thumb => {:width=>50, :height=>50} } Factory.define :attachment do |a| a.owner_id Mongo::ObjectID.new a.owner_type 'Mock' a.name 'image' a.file_name 'mock.png' a.file_size 100 a.content_type 'image/png' a.variants variants end
Version data entries
7 entries across 7 versions & 1 rubygems