Skip to content

natedaiger/paperclip_fixtures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Hi.

This does for Paperclip what attachment_fu_fixtures did for attachment_fu.

Example:

  class Person < ActiveRecord::Base
    has_attached_file :attractive_photo
    has_attached_file :unattractive_photo
  end

You could do a fixture like this:

  frank:
    name: Frank Stallone
    file_for_attractive_photo: /home/frank/looking_good.jpg
    file_for_unattractive_photo: /home/frank/oh_tonight_got_kind_of_weird.jpg
    
There you go!

Inspiration and some code code from:
http://github.com/mynyml/attachment_fu_fixtures/tree/master

About

Support for fixtures containing Paperclip attachment files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages