<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,6 @@
+* Apr 17 2008 *
+* amazon_s3.yml is now passed through ERB before being passed to AWS::S3 [Fran&#231;ois Beausoleil]
+
 * Mar 22 2008 *
 * Some tweaks to support Rails 2.0 and Rails 2.1 due to ActiveSupport::Callback changes.  
   Thanks to http://blog.methodmissing.com/2008/1/19/edge-callback-refactorings-attachment_fu/
@@ -29,4 +32,4 @@
 * make #current_data public with db_file and s3 backends [ebryn]
 * oops, actually svn add the files for s3 backend. [Jeffrey Hardy]
 * experimental s3 support, egad, no tests.... [Jeffrey Hardy]
-* doh, fix a few bad references to ActsAsAttachment [sixty4bit]
\ No newline at end of file
+* doh, fix a few bad references to ActsAsAttachment [sixty4bit]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -133,7 +133,7 @@ module Technoweenie # :nodoc:
 
           begin
             @@s3_config_path = base.attachment_options[:s3_config_path] || (RAILS_ROOT + '/config/amazon_s3.yml')
-            @@s3_config = @@s3_config = YAML.load_file(@@s3_config_path)[RAILS_ENV].symbolize_keys
+            @@s3_config = @@s3_config = YAML.load(ERB.new(File.read(@@s3_config_path)).result)[RAILS_ENV].symbolize_keys
           #rescue
           #  raise ConfigFileNotFoundError.new('File %s not found' % @@s3_config_path)
           end</diff>
      <filename>lib/technoweenie/attachment_fu/backends/s3_backend.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9610d9cc764026727f02cb623751e497898e35f9</id>
    </parent>
  </parents>
  <author>
    <name>Fran&#231;ois Beausoleil</name>
    <email>francois@teksol.info</email>
  </author>
  <url>http://github.com/isaacfeliu/attachment_fu/commit/0598b0b33a3ab0e62f27bc261c8d4f4360282166</url>
  <id>0598b0b33a3ab0e62f27bc261c8d4f4360282166</id>
  <committed-date>2008-04-17T17:57:20-07:00</committed-date>
  <authored-date>2008-04-17T17:57:20-07:00</authored-date>
  <message>Made the amazon_s3.yml file go through ERB before being read by YAML.load.

This allows us to set the Amazon keys through the environment, and not put them under version control.</message>
  <tree>b9af22535b0b37e00d41892c5a7f935729dcc261</tree>
  <committer>
    <name>Fran&#231;ois Beausoleil</name>
    <email>francois@teksol.info</email>
  </committer>
</commit>
