<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>config/initializers/set_attachment_storage_mode.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -8,7 +8,7 @@ class Import &lt; ActiveRecord::Base
   load_mappings
   include PersonMethods
   
-  has_attachment  :storage =&gt; :s3
+  has_attachment :storage =&gt; $attachment_storage_mode
   validates_as_attachment 
   
   belongs_to :person</diff>
      <filename>app/models/import.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,10 @@
 class ProfilePicture &lt; ActiveRecord::Base
   load_mappings
 
-  def self.storage_mode
-    !Rails.env.test? &amp;&amp; File.exists?(Rails.root.join('config','amazon_s3.yml')) ? :s3 : :file_system
-  end
-
   belongs_to :person, :class_name =&gt; &quot;Person&quot;, :foreign_key =&gt; _(&quot;person_id&quot;)
 
   has_attachment :content_type =&gt; :image, 
-                 :storage =&gt; storage_mode, 
+                 :storage =&gt; $attachment_storage_mode, 
                  :max_size =&gt; 10.megabytes,
                  :resize_to =&gt; '400x400&gt;',
                  :thumbnails =&gt; {:mini =&gt; '50x50&gt;',</diff>
      <filename>app/models/profile_picture.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e59fd9a878e36e8aec352c6cac0748a0a8ebf0b7</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Roth</name>
    <email>andrewroth@gmail.com</email>
  </author>
  <url>http://github.com/twinge/ministry-tracker/commit/ffdc21b649410308eb645a2dcbf9b859363a334d</url>
  <id>ffdc21b649410308eb645a2dcbf9b859363a334d</id>
  <committed-date>2009-10-22T10:48:26-07:00</committed-date>
  <authored-date>2009-10-22T10:48:26-07:00</authored-date>
  <message>handle attachments not stored on s3</message>
  <tree>0ef8f477c204344395f45bc9b43a5238f309b3cb</tree>
  <committer>
    <name>Andrew Roth</name>
    <email>andrewroth@gmail.com</email>
  </committer>
</commit>
