public
Description: Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
Homepage: http://weblog.techno-weenie.net
Clone URL: git://github.com/technoweenie/attachment_fu.git
Click here to lend your support to: attachment_fu and make a donation at www.pledgie.com !
eadz (author)
Sun Jun 08 21:50:07 -0700 2008
commit  65d61ed2c56292ba7c1e91cbb1ec9427f1d8e6e0
tree    3199fb9b2031182bf95fc3383d4152db7cd5878b
parent  13c7cabab3b1b160bc9314db7be3768d32c894e6
attachment_fu / install.rb
100644 5 lines (4 sloc) 0.248 kb
1
2
3
4
5
require 'fileutils'
 
s3_config = File.dirname(__FILE__) + '/../../../config/amazon_s3.yml'
FileUtils.cp File.dirname(__FILE__) + '/amazon_s3.yml.tpl', s3_config unless File.exist?(s3_config)
puts IO.read(File.join(File.dirname(__FILE__), 'README'))