isaacfeliu / attachment_fu forked from technoweenie/attachment_fu

Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.

Isaac Feliu (author)
Fri Mar 27 09:33:52 -0700 2009
commit  c12fa3daf680e616615ce812ccb6fb69edd8331f
tree    0f9a6b5fce961d119fc6824c6ed9f105fc3a0780
parent  4d61057db9a2a627ea17bbce73b1eb860a705865
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'))